FileGenerator.CodeGenerator.WriteIf C# (CSharp) Method

WriteIf() protected method

protected WriteIf ( string condition, string action ) : void
condition string
action string
return void
    protected void WriteIf(string condition, string action)
    {
      WriteLine("if (" + condition + ")");
      Indent++;
      WriteLine(action);
      Indent--;
    }