Search code examples
c#assemblies

How to get C#.Net Assembly by name?


Is there something like:

AppDomain.CurrentDomain.GetAssemblyByName("TheAssemblyName")

so instead of looping through AppDomain.CurrentDomain.GetAssemblies(), we could just get the specific assembly directly.


Solution

  • Have you tried looking at Assembly.Load(...)?