I happened across an attribute in c# that’s called [Inheritance]. Microsoft’s documentation on the attribute is somewhat limited. The attribute has only one property which is an enumeration they call inheritance level. That’s about all I could find by googling about. So here are my questions:
-
Does the attribute actually do anything or is it just a notation?
-
If it does do anything, does it enforce inheritance (or lack thereof) by throwing a compile time error?
-
Or, can it actually change what IS inherited? ex)
InheritanceLevel.NotInheritedis selected, does it then cancel out inheritance?
It does not do anything, it is a notation used internally by the compiler / linker
N/A
N/A