暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AssemblyWrapper.cs 765B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Reflection;
  3. namespace UnityEngine.TestTools.Utils
  4. {
  5. internal class AssemblyWrapper : IAssemblyWrapper
  6. {
  7. public AssemblyWrapper(Assembly assembly)
  8. {
  9. Assembly = assembly;
  10. Name = assembly.GetName();
  11. }
  12. public Assembly Assembly { get; }
  13. public AssemblyName Name { get; }
  14. public virtual string Location
  15. {
  16. get
  17. {
  18. //Some platforms dont support this
  19. throw new NotImplementedException();
  20. }
  21. }
  22. public virtual AssemblyName[] GetReferencedAssemblies()
  23. {
  24. //Some platforms dont support this
  25. throw new NotImplementedException();
  26. }
  27. }
  28. }