2012-11-17 46 views

回答

11

要創建值類型,您需要將類型定義爲struct(與定義引用類型的class相對)。例如:

struct MyValueType 
{ 
    public string MyField; 
} 
相關問題