The .NET Assembly class contains a method (GetExportedTypes()) and a property (ExportedTypes).
The documentation for these seems identical ("Returns a collection of all public visible types in the assembly"). Is there any difference between these ? or is this something related to historical reasons with the Assembly class's API ?
Looking into .NET sources using ILSpy returns following ExportedTypes
implementation:
public virtual IEnumerable<Type> ExportedTypes
{
get
{
return this.GetExportedTypes();
}
}
However, classes that inherits Assembly
class can implement the property differently, so you probably shouldn't rely on GetExportedTypes()
and ExportedTypes
doing exactly the same thing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With