Csharp/C Sharp by API/System/UInt16
UInt16.GetType()
using System;
class MainClass
{
public static void Main(string[] args)
{
System.UInt16 myUInt16 = 30000;
Console.WriteLine("Your value is: {0}", myUInt16.ToString());
Console.WriteLine("I am a: {0}", myUInt16.GetType().ToString());
}
}
UInt16.MaxValue
using System;
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Max for an UInt16 is: {0}", UInt16.MaxValue);
Console.WriteLine("Min for an UInt16 is: {0}", UInt16.MinValue);
}
}
UInt16.MinValue
using System;
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("Max for an UInt16 is: {0}", UInt16.MaxValue);
Console.WriteLine("Min for an UInt16 is: {0}", UInt16.MinValue);
}
}
UInt16.ToString()
using System;
class MainClass
{
public static void Main(string[] args)
{
System.UInt16 myUInt16 = 30000;
Console.WriteLine("Your value is: {0}", myUInt16.ToString());
Console.WriteLine("I am a: {0}", myUInt16.GetType().ToString());
}
}