Mono Class Library: System.Convert Overview | MembersSystem.Convert.ToUInt16 Method |
Converts a string to a ushort . [Edit]
|
- value
- The string to be converted. The string is in the System.Globalization.NumberStyles.Integer style. [Edit]
value as a 16-bit unsigned integer. [Edit]
Type Reason ArgumentNullException value is a null reference. [Edit] FormatException value cannot be converted to a numeric value. [Edit] OverflowException The numeric value of value is greater than ushort.MaxValue or less than ushort.MinValue. [Edit]
This method parses value using the information in a System.Globalization.NumberFormatInfo instance initialized for the current system culture.
This member is not CLS-compliant. For a CLS-compliant alternative, use Convert.ToInt32(object)(string).
[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0