.NET 2.0, 新发现泛型 System.Nullable

翟二喜

允许为空的 int 型可以这样定义:


System.Nullable<int> myint = 3;
myint = myint * 3;

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: