System.Text.RegularExpressions.RegexCompilationInfo.IsPublic Property

Gets or sets a value that indicates whether the compiled regular expression has public visibility.

Syntax

public bool IsPublic { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

If the RegexCompilationInfo.IsPublic property is false, the regular expression class defined by the current instance can be instantiated only by code that is executing in the assembly that contains the class. However, because the Regex.CompileToAssembly(RegexCompilationInfo[], System.Reflection.AssemblyName) method generates an assembly that contains only compiled regular expressions and does not allow additional code to be added, there is generally no reason to assign this property a value of false.

Requirements

Namespace: System.Text.RegularExpressions
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0