结构类型的直接基类是什么?

来源:百度知道 编辑:UC知道 时间:2024/06/12 03:22:33
c#的

结构是值类型。C# 中的所有值类型都继承自 ValueType,后者继承自 Object。
换句话说:所有结构都直接继承自 System.ValueType,后者继承自 System.Object

直接基类是ValueType
间接基类还是Object
因为ValueType也是继承Object的