Csharp/C Sharp by API/System/UInt16 — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
| |
Текущая версия на 12:11, 26 мая 2010
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());
}
}