值类型Vs.引用类型 C#中所有的类型都继 Reference Types 承于System.Object System.Object 根类型 System.ValueType All Base Class Library classes and interfaces,including: System.Enum 所有的值类型都继承 User-defined System.String 于 classes and interfaces System.Array System.ValueType .Etc. Value Types 类型 All structs,including built-in numeric types All enums System.Int32 System.Boolean User-defined structs .Etc. 12 12 值类型 vs.引用类型 ▪ C#中所有的类型都继 承于System.Object 根类型 ▪ 所有的值类型都继承 于 System.ValueType 类型