I am trying to add my plugins to my application through the assembly. Load and I would like to know if there is an asset, which type of assembly was loaded - can be loaded dynamically attached library and executionable, right?
Thank you!
You can determine whether the LoadFrom function will allow the assembly to an EXE or DLL in the Assembly.EntryPoint property Whether or not it has been loaded using. If Property Returns a MethodInfo for entry point function, then you are working with an EXE.
From MSDN:
Type: System.Reflection.MethodInfo An object represents the entry point of this assembly if no entry point is found (for example, The assembly is a DLL), the zero is returned.
Comments
Post a Comment