LoaderHelper.cs 311 B

1234567891011121314151617
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Reflection;
  5. namespace Helper
  6. {
  7. public static class LoaderHelper
  8. {
  9. public static Assembly Load(string path)
  10. {
  11. byte[] buffer = File.ReadAllBytes(path);
  12. var assembly = Assembly.Load(buffer);
  13. return assembly;
  14. }
  15. }
  16. }