Do value types (Integer, Decimal, Boolean, etc…) inherit from Object?

前端 未结 8 2051
梦谈多话
梦谈多话 2020-12-03 14:59

Looking for clarification on this...

I\'ve heard that \'everything\' in .Net inherits from Object. I\'ve also heard that the difference between value types and refe

8条回答
  •  离开以前
    2020-12-03 15:06

    value types inherit (indirectly) from object

    ... but not everything in .net inherits from object.

提交回复
热议问题