ushort
using System;
/* A ushort value represents 16-bit unsigned integer type */
public class ushortExample
{
static void Main(String[] args)
{
ushort x = 100, y = 50;
Console.WriteLine(x.GetType());
Console.WriteLine(typeof(ushort));
Console.WriteLine(ushort.MinValue);
Console.WriteLine(ushort.MaxValue);
ushort z =(ushort) (x + y);
Console.WriteLine("Sum = " + z);
Console.ReadLine();
}
}
Output:
System.UInt16
System.UInt16
0
65535
Sum = 150