Can someone explain to me how does Assembly loading works in C# ?
Can I dynamically load an assembly that depends on other (not loaded) assembly? Will that work? Can I then call methods from this assembly? How can this work if the dependencies are not loaded?
>>59518699
Anon, you aren't seriously implying /g/ has any actual understanding are you?
>>59518699
Deps are loaded on first use afair. If you only call methods that don't require dependencies I think you're fine.
>>59518699
>Will that work?
No, unless you also load the dependencies of the loaded assembly
https://msdn.microsoft.com/en-us/library/system.appdomain.assemblyresolve(v=vs.110).aspx
>>59518884
But is it possible to load the dependencies automatically in "best effort" ? Like I have a folder with 100 dlls, I want to load one assembly, and basically its dependencies
it's not even easy to know which dependencies are actually needed
>>59518699
dunno, C# is for niggers
>>59518926
That's exactly what that thing is for you dummy