7 [global::__DynamicallyInvokable]
10 internal Regex _regex;
16 internal string _input;
18 internal int _beginning;
22 internal int _startat;
24 internal int _prevlen;
26 private static int infinite =
int.MaxValue;
31 [global::__DynamicallyInvokable]
34 [global::__DynamicallyInvokable]
39 return _matches.
Count;
42 return _matches.
Count;
66 [global::__DynamicallyInvokable]
67 public virtual Match this[
int i]
69 [global::__DynamicallyInvokable]
72 Match match = GetMatch(i);
83 if (startat < 0 || startat > input.Length)
89 _beginning = beginning;
97 internal Match GetMatch(
int i)
103 if (_matches.
Count > i)
105 return (Match)_matches[i];
114 match = _regex.Run(quick:
false, _prevlen, _input, _beginning, _length, _startat);
121 _prevlen = match._length;
122 _startat = match._textpos;
124 while (_matches.
Count <= i);
139 if (array !=
null && array.Rank != 1)
146 _matches.
CopyTo(array, arrayIndex);
150 throw new ArgumentException(SR.GetString(
"Arg_InvalidArrayType"), innerException);
157 [global::__DynamicallyInvokable]
160 return new MatchEnumerator(
this);
bool IsReadOnly
Gets a value that indicates whether the collection is read only.
virtual int Count
Gets the number of elements actually contained in the T:System.Collections.ArrayList.
The exception that is thrown when the value of an argument is outside the allowable range of values a...
object SyncRoot
Gets an object that can be used to synchronize access to the collection.
bool IsSynchronized
Gets a value indicating whether access to the collection is synchronized (thread-safe).
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
IEnumerator GetEnumerator()
Provides an enumerator that iterates through the collection.
The exception that is thrown when an attempt is made to store an element of the wrong type within an ...
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
virtual void CopyTo(Array array)
Copies the entire T:System.Collections.ArrayList to a compatible one-dimensional T:System....
virtual int Add(object value)
Adds an object to the end of the T:System.Collections.ArrayList.
Represents the results from a single regular expression match.
The exception that is thrown when one of the arguments provided to a method is not valid.
int Count
Gets the number of matches.
Specifies that the class can be serialized.
Defines size, enumerators, and synchronization methods for all nongeneric collections.
void CopyTo(Array array, int arrayIndex)
Copies all the elements of the collection to the given array starting at the given index.
Represents an immutable regular expression.To browse the .NET Framework source code for this type,...
Supports a simple iteration over a non-generic collection.
Implements the T:System.Collections.IList interface using an array whose size is dynamically increase...
Represents the set of successful matches found by iteratively applying a regular expression pattern t...