Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RegexCompilationInfo.cs
Go to the documentation of this file.
2
4
6{
7 private string _pattern;
8
9 private string _name;
10
11 private string _nspace;
12
14
15 public bool IsPublic { get; set; }
16
18 {
19 get
20 {
21 return _matchTimeout;
22 }
23 set
24 {
27 }
28 }
29
30 public string Name
31 {
32 get
33 {
34 return _name;
35 }
36 [MemberNotNull("_name")]
37 set
38 {
39 if (value == null)
40 {
41 throw new ArgumentNullException("Name");
42 }
43 if (value.Length == 0)
44 {
46 }
47 _name = value;
48 }
49 }
50
51 public string Namespace
52 {
53 get
54 {
55 return _nspace;
56 }
57 [MemberNotNull("_nspace")]
58 set
59 {
60 _nspace = value ?? throw new ArgumentNullException("Namespace");
61 }
62 }
63
64 public RegexOptions Options { get; set; }
65
66 public string Pattern
67 {
68 get
69 {
70 return _pattern;
71 }
72 [MemberNotNull("_pattern")]
73 set
74 {
75 _pattern = value ?? throw new ArgumentNullException("Pattern");
76 }
77 }
78
79 public RegexCompilationInfo(string pattern, RegexOptions options, string name, string fullnamespace, bool ispublic)
80 : this(pattern, options, name, fullnamespace, ispublic, Regex.s_defaultMatchTimeout)
81 {
82 }
83
84 public RegexCompilationInfo(string pattern, RegexOptions options, string name, string fullnamespace, bool ispublic, TimeSpan matchTimeout)
85 {
87 Name = name;
88 Namespace = fullnamespace;
90 IsPublic = ispublic;
92 }
93}
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string InvalidEmptyArgument
Definition SR.cs:46
Definition SR.cs:7
RegexCompilationInfo(string pattern, RegexOptions options, string name, string fullnamespace, bool ispublic)
RegexCompilationInfo(string pattern, RegexOptions options, string name, string fullnamespace, bool ispublic, TimeSpan matchTimeout)
static void ValidateMatchTimeout(TimeSpan matchTimeout)
Definition Regex.cs:169