2008-03-05 09:52:00 -05:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
2008-11-17 18:29:00 -05:00
|
|
|
namespace System.Text.RegularExpressions
|
|
|
|
{
|
2008-03-05 09:52:00 -05:00
|
|
|
using System;
|
|
|
|
|
|
|
|
//| <include file='doc\RegexCompilationInfo.uex' path='docs/doc[@for="RegexCompilationInfo"]/*' />
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// [To be supplied]
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
2008-11-17 18:29:00 -05:00
|
|
|
//[ Serializable() ]
|
|
|
|
public class RegexCompilationInfo {
|
2008-03-05 09:52:00 -05:00
|
|
|
private String pattern;
|
|
|
|
private RegexOptions options;
|
|
|
|
private String name;
|
|
|
|
private String nspace;
|
|
|
|
private bool isPublic;
|
|
|
|
|
|
|
|
//| <include file='doc\RegexCompilationInfo.uex' path='docs/doc[@for="RegexCompilationInfo.RegexCompilationInfo"]/*' />
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// [To be supplied]
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public RegexCompilationInfo(String pattern, RegexOptions options, String name, String fullnamespace, bool ispublic) {
|
|
|
|
Pattern = pattern;
|
|
|
|
Name = name;
|
|
|
|
Namespace = fullnamespace;
|
|
|
|
this.options = options;
|
|
|
|
isPublic = ispublic;
|
|
|
|
}
|
|
|
|
|
|
|
|
//| <include file='doc\RegexCompilationInfo.uex' path='docs/doc[@for="RegexCompilationInfo.Pattern"]/*' />
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// [To be supplied]
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public String Pattern {
|
|
|
|
get { return pattern; }
|
2008-11-17 18:29:00 -05:00
|
|
|
set {
|
2008-03-05 09:52:00 -05:00
|
|
|
if (value == null)
|
|
|
|
throw new ArgumentNullException("value");
|
|
|
|
pattern = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//| <include file='doc\RegexCompilationInfo.uex' path='docs/doc[@for="RegexCompilationInfo.Options"]/*' />
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// [To be supplied]
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public RegexOptions Options {
|
|
|
|
get { return options; }
|
|
|
|
set { options = value;}
|
|
|
|
}
|
|
|
|
|
|
|
|
//| <include file='doc\RegexCompilationInfo.uex' path='docs/doc[@for="RegexCompilationInfo.Name"]/*' />
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// [To be supplied]
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public String Name {
|
|
|
|
get { return name; }
|
2008-11-17 18:29:00 -05:00
|
|
|
set {
|
2008-03-05 09:52:00 -05:00
|
|
|
if (value == null)
|
|
|
|
throw new ArgumentNullException("value");
|
|
|
|
name = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//| <include file='doc\RegexCompilationInfo.uex' path='docs/doc[@for="RegexCompilationInfo.Namespace"]/*' />
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// [To be supplied]
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public String Namespace {
|
|
|
|
get { return nspace; }
|
2008-11-17 18:29:00 -05:00
|
|
|
set {
|
2008-03-05 09:52:00 -05:00
|
|
|
if (value == null)
|
|
|
|
throw new ArgumentNullException("value");
|
|
|
|
nspace = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//| <include file='doc\RegexCompilationInfo.uex' path='docs/doc[@for="RegexCompilationInfo.IsPublic"]/*' />
|
|
|
|
/// <devdoc>
|
|
|
|
/// <para>
|
|
|
|
/// [To be supplied]
|
|
|
|
/// </para>
|
|
|
|
/// </devdoc>
|
|
|
|
public bool IsPublic {
|
|
|
|
get { return isPublic; }
|
|
|
|
set { isPublic = value;}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|