Delegate TryParseNumberDelegate
Defines delegate type for the methods that convert the string representation of a number to its number equivalent.
public delegate bool TryParseNumberDelegate(string? s, NumberStyles style, IFormatProvider? provider, out object? result)
Parameters
s
stringThe string to parse.
style
NumberStylesA bitwise combination of NumberStyles values that indicates the permitted format of
s
.provider
IFormatProviderAn object that supplies culture-specific formatting information about
s
.result
objectWhen this method returns and if the conversion succeeded, contains a number equivalent of the numeric value or symbol contained in
s
. Contains default value for the type if the conversion failed.
Returns
- bool
true
if s was converted successfully; otherwise,false
.