static void Main(string[] args)
{
// StringOrstring();
UseVarKeyWord();
Console.ReadKey();
}
static void StringOrstring()
{
String str1 = "Hello";
string str2 = "World!";
Console.WriteLine(str1.GetType());
Console.WriteLine(str2.GetType());
Console.WriteLine(typeof(String) == typeof(string));
}
static void UseVarKeyWord()
{
// 隐式类型变量定义
var Value = 100;
Console.WriteLine(Value.GetType());
var Value2 = "Hello";
Console.WriteLine(Value2.GetType());
}