Skip to content

Tag Archives: CSharp-UInt16-Struct

Int16: This Struct is used to represents 16-bit signed integer. The Int16 can store both types of values including negative and positive between the ranges… Read More
UInt16: This Struct is used to represents 16-bit unsigned integer. The UInt16 can store only positive value only which ranges from 0 to 65535. Example… Read More
UInt16.Parse(String) Method is used to convert the string representation of a number to its 16-bit unsigned integer equivalent. Syntax: public static ushort Parse (string str);… Read More
In C#, UInt16 struct is used to represent 16-bit unsigned integers(also termed as ushort data type) starting from range 0 to 65535. It provides different… Read More
UInt16.ToString Method is used to convert the numeric value of the current UInt16 instance to its equivalent string representation. There are 4 methods in the… Read More
UInt16.Equals Method is used to get a value which indicates whether the current instance is equal to a specified object or 16-bit unsigned integer or… Read More
UInt16.ToString Method is used to convert the numeric value of the current instance to its equivalent string representation. There are 4 methods in the overload… Read More
UInt16.CompareTo Method is used to compare the current instance to a specified object or another UInt16 instance. It returns an integer which shows whether the… Read More
UInt16.GetTypeCode method is used to get the TypeCode for value type UInt16. Syntax: public TypeCode GetTypeCode (); Return Value: This method returns the enumerated constant… Read More
UInt16.GetHashCode method is used to get the HashCode for the current UInt16 instance. Syntax: public override int GetHashCode (); Return Value: This method returns a… Read More
The MaxValue field of UInt16 Struct is used to represent the maximum value of the 16-bit unsigned integer. The value of this field is constant… Read More
The MinValue field of UInt16 Struct is used to represent the minimum possible value of 16-bit unsigned integer i.e. ushort data type. The value of… Read More