mscorlib(4.0.0.0) API with additions
Capture.cs
2 {
5  [global::__DynamicallyInvokable]
6  public class Capture
7  {
8  internal string _text;
9 
10  internal int _index;
11 
12  internal int _length;
13 
16  [global::__DynamicallyInvokable]
17  public int Index
18  {
19  [global::__DynamicallyInvokable]
20  get
21  {
22  return _index;
23  }
24  }
25 
28  [global::__DynamicallyInvokable]
29  public int Length
30  {
31  [global::__DynamicallyInvokable]
32  get
33  {
34  return _length;
35  }
36  }
37 
40  [global::__DynamicallyInvokable]
41  public string Value
42  {
43  [global::__DynamicallyInvokable]
44  get
45  {
46  return _text.Substring(_index, _length);
47  }
48  }
49 
50  internal Capture(string text, int i, int l)
51  {
52  _text = text;
53  _index = i;
54  _length = l;
55  }
56 
59  [global::__DynamicallyInvokable]
60  public override string ToString()
61  {
62  return Value;
63  }
64 
65  internal string GetOriginalString()
66  {
67  return _text;
68  }
69 
70  internal string GetLeftSubstring()
71  {
72  return _text.Substring(0, _index);
73  }
74 
75  internal string GetRightSubstring()
76  {
77  return _text.Substring(_index + _length, _text.Length - _index - _length);
78  }
79  }
80 }
int Index
The position in the original string where the first character of the captured substring is found.
Definition: Capture.cs:18
Represents the results from a single successful subexpression capture.
Definition: Capture.cs:6
override string ToString()
Retrieves the captured substring from the input string by calling the P:System.Text....
Definition: Capture.cs:60
string Value
Gets the captured substring from the input string.
Definition: Capture.cs:42
int Length
Gets the length of the captured substring.
Definition: Capture.cs:30
Specifies that the class can be serialized.