src/T4Toolbox/Generator.cs
/// <summary>
/// Validates and runs the generator.
/// </summary>
Validates and runs the generator.
Validates and runs the generator .
public void Run()
        {
            this.Errors.Clear();
            try
            {
                this.Validate();
                if (!this.Errors.HasErrors)
                {
                    this.RunCore();
                }
            }
            catch (TransformationException e)
            {
                this.Error(e.Message);
            }
            finally
            {
                this.Context.ReportErrors(this.Errors);                
            }
        }
public void Run ( ) { this . Errors . Clear ( ) ; try { this . Validate ( ) ; if ( ! this . Errors . HasErrors ) { this . RunCore ( ) ; } } catch ( TransformationException e ) { this . Error ( e . Message ) ; } finally { this . Context . ReportErrors ( this . Errors ) ; } }
Validates and runs the generator.
Validates and runs the generator .