Esempio n. 1
0
 public StubBuilder(CSharpSourceWriter writer)
 {
     this.writer = writer;
     writer.WriteUsings(
         "System",                     // Action, Func, Type
         "System.Collections.Generic", // Dictionary
         "System.Delegation");         // PropertyImplementation, EventImplementation
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public CompositeBuilder(CSharpSourceWriter writer)
 {
     this.writer = writer;
     writer.WriteUsings("System.Linq");
 }