protected WindowsAssemblyBuilder(WindowsAssembly assembly, BuildingParameters parameters)
 {
     if (assembly == null)
         throw new ArgumentNullException("assembly");
     if (parameters == null)
         throw new ArgumentNullException("parameters");
     Assembly = assembly;
     Parameters = parameters;
 }
Beispiel #2
0
 protected WindowsAssemblyBuilder(WindowsAssembly assembly, BuildingParameters parameters)
 {
     if (assembly == null)
     {
         throw new ArgumentNullException("assembly");
     }
     if (parameters == null)
     {
         throw new ArgumentNullException("parameters");
     }
     Assembly   = assembly;
     Parameters = parameters;
 }
 public NetAssemblyBuilder(WindowsAssembly assembly, BuildingParameters parameters)
     : base(assembly, parameters)
 {
     _sectionsTableBuilder = new SectionsTableBuilder(this);
     InitializeBluePrint();
 }
Beispiel #4
0
 /// <summary>
 /// Rebuilds and writes the assembly to a destination, using the specified building parameters.
 /// </summary>
 /// <param name="parameters">The parameters to use for building the assembly image.</param>
 public void Write(BuildingParameters parameters)
 {
     var builder = new NetAssemblyBuilder(this, parameters);
     var context = new NetBuildingContext(builder);
     builder.Build(context);
     builder.UpdateOffsets(context);
     builder.UpdateReferences(context);
     builder.Write(new WritingContext(this, parameters.Writer, context));
 }