src/T4Toolbox.DirectiveProcessors/DirectiveProcessor.cs
/// <summary>
/// Begins a round of directive processing.
/// </summary>
/// <param name="languageProvider">CodeDom language provider for generating code.</param>
/// <param name="templateContents">Contents of the T4 template.</param>
/// <param name="errors">Compiler Errors.</param>
Begins a round of directive processing.
Begins a round of directive processing .
public void StartProcessingRun(CodeDomProvider languageProvider, string templateContents, CompilerErrorCollection errors)
        {
            if (languageProvider == null)
            {
                throw new ArgumentNullException("languageProvider");
            }
            if (errors == null)
            {
                throw new ArgumentNullException("errors");
            }
            this.LanguageProvider = languageProvider;
            this.Errors = errors;
            this.CleanupBuffers();
            this.InitializeBuffers();
        }
public void StartProcessingRun ( CodeDomProvider languageProvider , string templateContents , CompilerErrorCollection errors ) { if ( languageProvider == null ) { throw new ArgumentNullException ( " " ) ; } if ( errors == null ) { throw new ArgumentNullException ( " " ) ; } this . LanguageProvider = languageProvider ; this . Errors = errors ; this . CleanupBuffers ( ) ; this . InitializeBuffers ( ) ; }
Begins a round of directive processing.
Begins a round of directive processing .
// Validate parameters // Initialize references to external objects provided by T4 // Clean up buffers here instead of FinishProcessingRun because T4 uses them between the runs
languageProvider
CodeDomProvider
CodeDom language provider for generating code.
CodeDom language provider for generating code .
templateContents
string
Contents of the T4 template.
Contents of the T4 template .
errors
CompilerErrorCollection
None