MatchEvaluator

MatchEvaluator CF 1.0, serializable

System.Text.RegularExpressions (system.dll) delegate

This delegate can be called when a match is found during a replace operation. Several versions of the overloaded Regex.Replace( ) method take a MatchEvaluator as a parameter. Regex.Replace( ) walks through a search string looking for matches to a given expression and replaces each match using a specified replacement string. The MatchEvaluator delegate can be called on each match, getting passed the match result as a Match object.

 public delegate string  MatchEvaluator  (Match   match   ); 

Passed To

Regex.Replace( )



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net