Class Assembly Class Assembly loads assemblies and their meta-data
{"Image DocumentName": "Class Assembly Class Assembly loads assemblies and their meta-data", "Image ImageDescription": "Provides access to its meta-data. Klasa System.Reflection.Assembly. Load() LoadFrom() - pozwala wprowadzi\u0107 \u015bcie\u017ck\u0119 bezwzgl\u0119dn\u0105. public class Assembly { public static Assembly Load(string name); public virtual string FullName {get;} public virtual string Location {get;} public virtual MethodInfo EntryPoint {get;} public Module[] GetModules(); public virtual Type[] GetTypes(); public virtual Type GetType(string typeName); public object CreateInstance(string typeName); ... } Loading an assembly. Name, storage location, entry point of the assembly. Getting modules and all in the assembly defined types. Getting type with name typeName. Creation of an object of type typeName. Dynamiczny \u0142adowany zestaw. If you wish to make ExternalAssemblyReflector more flexible, you can update your code to load the external assembly using Assembly.LoadFrom() rather than Assembly.Load(). W czasie uruchomienia, program mo\u017ce wczytad zestawy z wybranych katalog\u00f3w. Nast\u0119pnie przejrzy typy w nich zaimplementowane pod wzgl\u0119dem pewnych kryteri\u00f3w (np. implementacji interfejs\u00f3w). W przypadku gdy typ spe\u0142niaj\u0105cy dane kryteria istnieje, utworzyd jego instancj\u0119, a nast\u0119pnie wywo\u0142ad metod\u0119 na rzecz danej instancji. Zwr\u00f3dmy uwag\u0119, \u017ce nie musimy w czasie tworzenia programu znad nazwy danego typu. Assembly.LoadFrom( c:\\Katalog\\Przykladowy.Zestaw.dll ); Assembly a = NazwaZestawu, Version= , PublicKeyToken=null, Culture= ); Assembly.LoadFrom( c:\\Katalog\\Przykladowy.Zestaw.dll ); Assembly a = NazwaZestawu, Version= , PublicKeyToken=null, Culture= );", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}