Fork me on GitHub
摘要: 以下是System.Nullable<T>在FCL中的定义。 Code 1 [Serializable, StructLayout(LayoutKind.Sequential)] 2 public struct Nullable<T> where T :struct 3 { 4 private Boolean hasValue= false; 5 internal T value= default(T); 6 7 public Nullable(T value) 8 { 9 this.value= value;10 this.hasValue= true;11 }12 阅读全文
posted @ 2011-11-05 17:17 Halower 阅读(439) 评论(0) 推荐(1) 编辑