PageRenderTime 203ms CodeModel.GetById 101ms app.highlight 1ms RepoModel.GetById 100ms app.codeStats 0ms

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