I came across an attribute in C # called [Inheritance] . Microsoft attribute documentation is somewhat limited. An attribute has only one property, which is an enumeration that they call the level of inheritance . This is about everything I could find, by search. So here are my questions:
Is the attribute really doing something or is it just a designation?
If he does something, does he ensure inheritance (or lack thereof) by throwing a compile-time error?
Or can it actually change what is inherited? ex) InheritanceLevel.NotInherited , does it cancel inheritance?
source share