/src/LinFu.Reflection/Interfaces/IAssemblyLoader.cs

http://github.com/philiplaureano/LinFu · C# · 27 lines · 11 code · 2 blank · 14 comment · 0 complexity · 5529c45064d12e5737882513e98f1e5b MD5 · raw file

  1. using System.Reflection;
  2. namespace LinFu.Reflection
  3. {
  4. /// <summary>
  5. /// Represents a class that loads assemblies into memory
  6. /// from disk.
  7. /// </summary>
  8. /// <typeparam name="TAssembly"></typeparam>
  9. public interface IAssemblyLoader<TAssembly>
  10. {
  11. /// <summary>
  12. /// Loads the target assembly into memory.
  13. /// </summary>
  14. /// <param name="assemblyFile">The full path and filename of the assembly to load.</param>
  15. /// <returns>A loaded <see cref="Assembly" /> instance.</returns>
  16. TAssembly Load(string assemblyFile);
  17. }
  18. /// <summary>
  19. /// Represents a class that loads assemblies into memory
  20. /// from disk.
  21. /// </summary>
  22. public interface IAssemblyLoader : IAssemblyLoader<Assembly>
  23. {
  24. }
  25. }