Files
Dec2017-Script-Dump/System/Text/RegularExpressions/RegexCompilationInfo.cs
T
2026-06-04 11:42:34 +02:00

147 lines
4.7 KiB
C#

using System;
namespace System.Text.RegularExpressions
{
/// <summary>Provides information about a regular expression that is used to compile a regular expression to a stand-alone assembly. </summary>
// Token: 0x020002B4 RID: 692
[Serializable]
public class RegexCompilationInfo
{
/// <summary>Initializes a new instance of the <see cref="T:System.Text.RegularExpressions.RegexCompilationInfo" /> class that contains information about a regular expression to be included in an assembly. </summary>
/// <param name="pattern">The regular expression to compile. </param>
/// <param name="options">The regular expression options to use when compiling the regular expression. </param>
/// <param name="name">The name of the type that represents the compiled regular expression. </param>
/// <param name="fullnamespace">The namespace to which the new type belongs. </param>
/// <param name="ispublic">true to make the compiled regular expression publicly visible; otherwise, false. </param>
// Token: 0x06001966 RID: 6502 RVA: 0x00056AB0 File Offset: 0x00054CB0
public RegexCompilationInfo(string pattern, RegexOptions options, string name, string fullnamespace, bool ispublic)
{
this.Pattern = pattern;
this.Options = options;
this.Name = name;
this.Namespace = fullnamespace;
this.IsPublic = ispublic;
}
/// <summary>Gets or sets a value that indicates whether the compiled regular expression has public visibility.</summary>
/// <returns>true if the regular expression has public visibility; otherwise, false.</returns>
// Token: 0x170007EE RID: 2030
// (get) Token: 0x06001967 RID: 6503 RVA: 0x00056AE8 File Offset: 0x00054CE8
// (set) Token: 0x06001968 RID: 6504 RVA: 0x00056AF0 File Offset: 0x00054CF0
public bool IsPublic
{
get
{
return this.isPublic;
}
set
{
this.isPublic = value;
}
}
/// <summary>Gets or sets the name of the type that represents the compiled regular expression.</summary>
/// <returns>The name of the new type.</returns>
/// <exception cref="T:System.ArgumentNullException">The value for this property is null.</exception>
/// <exception cref="T:System.ArgumentException">The value for this property is an empty string.</exception>
// Token: 0x170007EF RID: 2031
// (get) Token: 0x06001969 RID: 6505 RVA: 0x00056AFC File Offset: 0x00054CFC
// (set) Token: 0x0600196A RID: 6506 RVA: 0x00056B04 File Offset: 0x00054D04
public string Name
{
get
{
return this.name;
}
set
{
if (value == null)
{
throw new ArgumentNullException("Name");
}
if (value.Length == 0)
{
throw new ArgumentException("Name");
}
this.name = value;
}
}
/// <summary>Gets or sets the namespace to which the new type belongs.</summary>
/// <returns>The namespace of the new type.</returns>
/// <exception cref="T:System.ArgumentNullException">The value for this property is null.</exception>
// Token: 0x170007F0 RID: 2032
// (get) Token: 0x0600196B RID: 6507 RVA: 0x00056B40 File Offset: 0x00054D40
// (set) Token: 0x0600196C RID: 6508 RVA: 0x00056B48 File Offset: 0x00054D48
public string Namespace
{
get
{
return this.nspace;
}
set
{
if (value == null)
{
throw new ArgumentNullException("Namespace");
}
this.nspace = value;
}
}
/// <summary>Gets or sets the options to use when compiling the regular expression.</summary>
/// <returns>A bitwise combination of the enumeration values.</returns>
// Token: 0x170007F1 RID: 2033
// (get) Token: 0x0600196D RID: 6509 RVA: 0x00056B64 File Offset: 0x00054D64
// (set) Token: 0x0600196E RID: 6510 RVA: 0x00056B6C File Offset: 0x00054D6C
public RegexOptions Options
{
get
{
return this.options;
}
set
{
this.options = value;
}
}
/// <summary>Gets or sets the regular expression to compile.</summary>
/// <returns>The regular expression to compile.</returns>
/// <exception cref="T:System.ArgumentNullException">The value for this property is null.</exception>
// Token: 0x170007F2 RID: 2034
// (get) Token: 0x0600196F RID: 6511 RVA: 0x00056B78 File Offset: 0x00054D78
// (set) Token: 0x06001970 RID: 6512 RVA: 0x00056B80 File Offset: 0x00054D80
public string Pattern
{
get
{
return this.pattern;
}
set
{
if (value == null)
{
throw new ArgumentNullException("pattern");
}
this.pattern = value;
}
}
// Token: 0x040013E3 RID: 5091
private string pattern;
// Token: 0x040013E4 RID: 5092
private string name;
// Token: 0x040013E5 RID: 5093
private string nspace;
// Token: 0x040013E6 RID: 5094
private RegexOptions options;
// Token: 0x040013E7 RID: 5095
private bool isPublic;
}
}