Reference types and value type definition in C #

In C # ValueType is inherited from Object, so in C # everything is Object, of course, including value types, so in C # value types and reference types should be defined like this:
Inherited from ValueType are value types, in addition to is a reference type other than that, all custom struct by default inherit ValueType, struct can inherit custom interfaces;

Guess you like

Origin www.cnblogs.com/gamer142857/p/10967993.html