也說C#中的Immutable

摘要:本文從String開始,由淺入深地闡述了作者對Immutable的見解。並結合C#語言的不同版本探討了Immutable的不同實現方式。 Keywords: C#,immutable class,immutable field,System.String,readonly,const,Anonymous Type   有一種很簡單也很受用的編程(不僅僅是C#)宗旨,就是所謂的"Immutab
相關文章
相關標籤/搜索