Csharp/CSharp Tutorial/Data Type/long cast
Версия от 15:31, 26 мая 2010; (обсуждение)
Cast int to long implicit and cast in to short explicit
using System;
class MainClass
{
static void Main(string[] args)
{
int MyInt = 12345;
long MyLong = MyInt;
short MyShort = (short)MyInt;
}
}