In the MSDN documentation, System.Reflection.Assembly has a property called CodeBase which is defined as overridable.
Public Overridable ReadOnly Property CodeBase As String
However, if I try to create a new class that inherits System.Reflection.Assembly, I get an error message that tells me it cannot be inherited. So how can I override this property?
Unfortunately you can’t do this.
Although the
Assemblyclass itself is declared aspublic, it only provides aninternalconstructor. This effectively means that it can only be instantiated (or inherited) from within its own assembly, mscorlib.