Byte..::..TryParse Method (String, Byte%)
Tries to convert the string representation of a number to its Byte equivalent, and returns a value that indicates whether the conversion succeeded.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static bool TryParse( string s, out byte result )
<TemplateAttribute> _ Public Shared Function TryParse ( _ s As String, _ <OutAttribute> ByRef result As Byte _ ) As Boolean
[TemplateAttribute] public: static bool^ TryParse( String^ s, [OutAttribute] unsigned char^% result )
Parameters
- s
- Type: System..::..String
A string that contains a number to convert. The string is interpreted using the Integer style.
- result
- Type: System..::..Byte%
When this method returns, contains the Byte value equivalent to the number contained in s if the conversion succeeded, or zero if the conversion failed. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.