RegexMatchExtensions.Get<T> method

Returns a value of the specified type for the match.

public static T Get<T>(this Match match)
parameter description
T The desired type. See RegexMatchExtensions for supported types.
match The match.

Return Value

The corresponding value of the specified type.


exception condition
FormatException The text of the capture cannot be parsed as the specified type.
InvalidOperationException The match failed, or the specified type is not supported.

See Also