C#可以将值类型与NULL进行比较
Int32 x = 1;if (x == null){ Console.WriteLine("What the?");}
Int32 x = null;
public class Test{ public DateTime ADate = DateTime.Now; public Test () { Test test = new Test(); if (test.ADate == null) { Console.WriteLine("What the?"); } }}
不负相思意
慕的地10843
泛舟湖上清波郎朗
相关分类