ushort value : ushort « Data Type « C# / CSharp Tutorial






using System;

class MainClass
{
    public static void Main(string[] args)
    {
    ushort myOtherUInt16 = 12000;
    Console.WriteLine("Your value is: {0}", myOtherUInt16.ToString());
    Console.WriteLine("I am a: {0}\n", myOtherUInt16.GetType().ToString());
    }

}
Your value is: 12000
I am a: System.UInt16








2.17.ushort
2.17.1.ushort value
2.17.2.Ushort To Byte convert
2.17.3.Use ushort as the parameter for overload methods
2.17.4.Format ushort with: "G", "C", "D3", "E2", "e3", "F", "N", "P", "X", "000000.0", "#.0"