jjzjj

c# - 接口(interface)是否派生自 System.Object? C# 规范说是,埃里克说不,现实说不

问题很简单,在标题中问。C#4.0规范说:(§4.2.2)Theobjectclasstypeistheultimatebaseclassofallothertypes.EverytypeinC#directlyorindirectlyderivesfromtheobjectclasstype.EricLippertsays:Interfacetypes,notbeingclasses,arenotderivedfromobject.现实说:Typet=typeof(ICloneable).BaseType;Console.WriteLine(t==null);True那么规范是错误的

c# - 接口(interface)是否派生自 System.Object? C# 规范说是,埃里克说不,现实说不

问题很简单,在标题中问。C#4.0规范说:(§4.2.2)Theobjectclasstypeistheultimatebaseclassofallothertypes.EverytypeinC#directlyorindirectlyderivesfromtheobjectclasstype.EricLippertsays:Interfacetypes,notbeingclasses,arenotderivedfromobject.现实说:Typet=typeof(ICloneable).BaseType;Console.WriteLine(t==null);True那么规范是错误的