Bridge

SByte..::..TryParse Method (String, SByte%)

Tries to convert the string representation of a number to its SByte equivalent, and returns a value that indicates whether the conversion succeeded.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public static bool TryParse(
	string s,
	out sbyte result
)
<TemplateAttribute> _
Public Shared Function TryParse ( _
	s As String, _
	<OutAttribute> ByRef result As SByte _
) As Boolean
[TemplateAttribute]
public:
static bool^ TryParse(
	String^ s, 
	[OutAttribute] signed char^% result
)

Parameters

s
Type: System..::..String
A string that contains a number to convert.
result
Type: System..::..SByte%
When this method returns, contains the 8-bit signed integer value that is equivalent to the number contained in s if the conversion succeeded, or zero if the conversion failed. The conversion fails if the s parameter is null or Empty, is not in the correct format, or represents a number that is less than MinValue or greater than MaxValue. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.

Return Value

true if s was converted successfully; otherwise, false.