March 2002
Intermediate to advanced
864 pages
31h 8m
English
MatchCollection
This class is a collection of Match objects returned by Regex.Matches().
This collection contains
each match that an expression finds in the search string. The Count property returns
the number of matches found in the string.
public class MatchCollection : ICollection, IEnumerable { // Public Instance Properties public field int Count{get; } // implements ICollection public field bool IsReadOnly{get; } public field bool IsSynchronized{get; } // implements ICollection public field object SyncRoot{get; } // implements ICollection public virtual field Match this{get; } // Public Instance Methods public method void CopyTo(Array array, int arrayIndex); // implements ICollection public method IEnumerator GetEnumerator(); // implements IEnumerable }
Regex.Matches()