2
0

PeToCpsUtils.cs 541 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.IO;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Reflection;
  6. namespace PeToCpsUtils
  7. {
  8. // This has to be wrapped, as the CLR v2 CPS file has it as an
  9. // instance method. Since 4.0 it is virtual and MUST be called with callvirt
  10. //
  11. public class Utils {
  12. public static AssemblyName[] GetDependencies(Assembly asm) {
  13. return asm.GetReferencedAssemblies();
  14. }
  15. public static String typName(System.Type typ) {
  16. return typ.Name;
  17. }
  18. }
  19. }