User Defined ClassLoader In C #

Inspired by this question, why do I need a custom class loader in java

Does C # have a way to determine how to load classes and dll on request

+5
source share
3 answers

You can handle the AppDomain.AssemblyResolveevent to manually load assemblies that the runtime cannot find on its own.

+4
source

.NET offers many options for resolving / setting assembly / type names at boot time. But ultimately, look at the Assembly.Load and Assembly.LoadFrom methods - you can even load types from a specific user repository using these methods.

+1

, - ?

, , - /.

To do this, you must use the .NET profiler API and rewrite IL on the fly.

0
source

All Articles