public StubBuilder(CSharpSourceWriter writer) { this.writer = writer; writer.WriteUsings( "System", // Action, Func, Type "System.Collections.Generic", // Dictionary "System.Delegation"); // PropertyImplementation, EventImplementation }
public ClassStubBuilder(CSharpSourceWriter writer) { // the main writer will write the Stub class, which contains the new members. stubWriter = writer; writer.WriteUsings( "System", // Action, Func, Type, IDisposable "System.Collections.Generic", // Dictionary "System.Delegation", // PropertyImplementation, EventImplementation "System.Linq", // ConstructionCompletion uses Linq to get the correct constructor. "System.Runtime.Serialization"); // FormatterServices // the intermediateWriter will write the intermediate class, which contains the override members. intermediateWriter = new CSharpSourceWriter(writer.Indentation); }
public CompositeBuilder(CSharpSourceWriter writer) { this.writer = writer; writer.WriteUsings("System.Linq"); }