Mono Class Library: System.SByte Overview | MembersSystem.SByte.Parse Method |
Returns the specified string converted to a sbyte value. [Edit]
|
- s
- A string containing the value to convert. The string is interpreted using the style specified by style. [Edit]
- style
- Zero or more System.Globalization.NumberStyles values that specify the style of s. Specify multiple values for style using the bitwise OR operator. If style is a null reference, the string is interpreted using the System.Globalization.NumberStyles.Integer style. [Edit]
- s
- Documentation for this section has not yet been entered. [Edit]
- style
- Documentation for this section has not yet been entered. [Edit]
The sbyte value obtained from s. [Edit]
Type Reason ArgumentNullException s is a null reference. [Edit] FormatException s is not in the correct style. [Edit] OverflowException s represents a number greater than sbyte.MaxValue or less than sbyte.MinValue. [Edit]
This version of sbyte.Parse(string) is equivalent to sbyte.Parse(string) (s, style, null).
The string s is parsed using the formatting information in a System.Globalization.NumberFormatInfo initialized for the current system culture.
Note: For more information, see System.Globalization.NumberFormatInfo.CurrentInfo.This method is not CLS-compliant. For a CLS-compliant alternative use short.Parse(string)(string, System.Globalization.NumberStyles).
[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0