UInt16 Structure |
Namespace: System
[SerializableAttribute] public struct UInt16 : IComparable, IFormattable, IConvertible, IComparable<ushort>, IEquatable<ushort>
The UInt16 type exposes the following members.
Name | Description | |
---|---|---|
CompareTo(Object) | Compares this instance to a specified object and returns an indication of their relative values. | |
CompareTo(UInt16) | Compares this instance to a specified 16-bit unsigned integer and returns an indication of their relative values. | |
Equals(Object) | Returns a value indicating whether this instance is equal to a specified object. (Overrides ValueType.Equals(Object).) | |
Equals(UInt16) | Returns a value indicating whether this instance is equal to a specified UInt16 value. | |
GetHashCode | Returns the hash code for this instance. (Overrides ValueType.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString() | Converts the numeric value of this instance to its equivalent string representation. (Overrides ValueType.ToString().) | |
ToString(IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. | |
ToString(String) | Converts the numeric value of this instance to its equivalent string representation using the specified format. | |
ToString(String, IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. | |
TryParse(String, UInt16) | Tries to convert the string representation of a number to its 16-bit unsigned integer equivalent. A return value indicates whether the conversion succeeded or failed. | |
TryParse(String, NumberStyles, IFormatProvider, UInt16) | Tries to convert the string representation of a number in a specified style and culture-specific format to its 16-bit unsigned integer equivalent. A return value indicates whether the conversion succeeded or failed. |
Name | Description | |
---|---|---|
MaxValue | Represents the largest possible value of UInt16. This field is constant. | |
MinValue | Represents the smallest possible value of UInt16. This field is constant. |