Mono Class Library: System.Byte Overview | MembersSystem.Byte.Parse Method |
Returns the specified string converted to a byte value. [Edit]
|
- s
- A string containing the value to convert. The string is interpreted using the System.Globalization.NumberStyles.Integer style. [Edit]
- provider
- A IFormatProvider that supplies a System.Globalization.NumberFormatInfo containing culture-specific formatting information about s. [Edit]
- s
- Documentation for this section has not yet been entered. [Edit]
- provider
- Documentation for this section has not yet been entered. [Edit]
The byte value obtained from s . [Edit]
Type Reason ArgumentNullException s is a null reference. [Edit] OverflowException s represents a number greater than byte.MaxValue or less than byte.MinValue. [Edit] FormatException s is not in the correct style. [Edit]
This version of byte.Parse(string) is equivalent to byte.Parse(string) (s, System.Globalization.NumberStyles.Integer , provider ).
The string s is parsed using the culture-specific formatting information from the System.Globalization.NumberFormatInfo instance supplied by provider. If provider is null or a System.Globalization.NumberFormatInfo cannot be obtained from provider, the formatting information for the current system culture is used.
[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0