In the MSDN documentation, System.Reflection.Assembly has the CodeBase property, which is defined as overridable.
Public Overridable ReadOnly Property CodeBase As String
However, if I try to create a new class that inherits from System.Reflection.Assembly, I get an error message that tells me that it cannot be inherited. So how can I override this property?
Unfortunately, you cannot do this.
Although the class itself is Assemblydeclared as public, it provides only a constructor internal. This actually means that it can only be created (or inherited) only from the mscorlib native assembly.
Assembly
public
internal
, . Assembly sealed (NotInheritable VB.NET), ; internal (Friend VB.NET). , , , ( mscorlib).
sealed
NotInheritable
Friend
Source: https://habr.com/ru/post/1720553/More articles:Ant Tasks for Symbian - antThe dependency property does not work when trying to set the style - stylesHow to expand JTree nodes (in advance), but keep them invisible - javaНе удается увидеть WSDL на Delphi CGI с IIS7 - soapUnwanted border around JPanel - javaКак определить, является ли поле резервным полем автоматически реализованного свойства? - reflectionVSTO Programmatically adding a new worksheet based on an existing one - c #Collect Requirements with Team Foundation Server - tfsКак объяснить моим коллегам, что имена файлов не должны содержать символы верхнего регистра или специальные символы? - fileПравильное отображение NHibernate для определенного сценария (один-ко-многим/один-к-одному) - nhibernateAll Articles