/src/LinFu.AOP/Interfaces/IPdbLoader.cs

http://github.com/philiplaureano/LinFu · C# · 32 lines · 11 code · 4 blank · 17 comment · 0 complexity · 5d35dc45adc3264de6f657c07e1e8ca4 MD5 · raw file

  1. using System.Reflection;
  2. using Mono.Cecil;
  3. namespace LinFu.AOP.Cecil.Interfaces
  4. {
  5. /// <summary>
  6. /// Represents a type that can load PDB files from disk.
  7. /// </summary>
  8. public interface IPdbLoader
  9. {
  10. /// <summary>
  11. /// Loads an assembly into memory.
  12. /// </summary>
  13. /// <param name="assemblyArray">The bytes that represent the target assembly.</param>
  14. /// <param name="pdbBytes">The bytes that represent the PDB file.</param>
  15. /// <returns>A <see cref="System.Reflection.Assembly" /> that represents the loaded assembly.</returns>
  16. Assembly LoadAssembly(byte[] assemblyArray, byte[] pdbBytes);
  17. /// <summary>
  18. /// Loads the debug symbols from the target <paramref name="assembly" />.
  19. /// </summary>
  20. /// <param name="assembly">The assembly that contains the symbols to be loaded.</param>
  21. void LoadSymbols(AssemblyDefinition assembly);
  22. /// <summary>
  23. /// Saves the debug symbols for the target<paramref name="targetAssembly" />.
  24. /// </summary>
  25. /// <param name="targetAssembly">The assembly that contains the symbols to be saved.</param>
  26. void SaveSymbols(AssemblyDefinition targetAssembly);
  27. }
  28. }