I am sure this is due to the implementation of interfaces and inheritance.
In C #, how does the System.Type class have a property name? When I sample code of the Type class from metadata or using the Object Browser, I see that the Type class does not have:
string Name
defined anywhere.
I also see that Type inherits from MemberInfo and implements _Type and IReflect (like this):
public abstract class Type : MemberInfo, _Type, IReflect
The base class MemberInfo has the property:
public abstract string Name { get; }
From what I know, this one has one that is redefined in the derived class due to the abstract modifier. I do not see it in type ...
Then in the _Type interface there is a property:
string Name { get; }
and since it is in the interface, it also does not have its own implementation.
Where is the name definition defined and how does it matter in the System.Type class? Or I donβt understand how inheritance and implementation of interfaces work for this class
source share