using System;
namespace DemoConsole
{
class Program
{
static void Main(string[] args)
{
int intValue1, intValue2;
long longValue1, longValue2;
intValue1 = 123;
longValue1 = 456;
longValue2 = intValue1; // 隐式转换
intValue2 = (int)longValue1;// 显示转换
Console.WriteLine("{0} = {1}", intValue1, longValue2);
Console.WriteLine("(int){0} = {1}", longValue1, intValue2);
Console.Read();
}
}
}