Example #1
0
 /// <summary>
 /// Constructs a new assembly patcher patching the assembly in the given path.
 /// </summary>
 /// <param name="targetAssemblyPath">The path to the given assembly.</param>
 /// <param name="log">A log.</param>
 public AssemblyPatcher(string targetAssemblyPath,
                        ILogger log = null)
     : this(AssemblyCache.Default.ReadAssembly(targetAssemblyPath), log)
 {
     OriginalAssemblyMetadata = TargetAssembly.GetAssemblyMetadataString();
 }