Gets the number of matches.
Assembly: System (in System.dll)
Accessing individual members of the MatchCollection object by retrieving the value of the collection's property causes the regular expression engine to populate the collection all at once using direct evaluation. In contrast, calling the GetEnumerator method (or using the foreach statement in C# and the For Each...Next statement in Visual Basic) causes the regular expression engine to populate the collection on an as needed basis using lazy evaluation. Direct evaluation can be a much more expensive method of building the collection than lazy evaluation.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.