XSharp.CodeDom.XSharpCodeGenerator.GenerateVariableDeclarationStatement C# (CSharp) Метод

GenerateVariableDeclarationStatement() защищенный Метод

protected GenerateVariableDeclarationStatement ( CodeVariableDeclarationStatement e ) : void
e System.CodeDom.CodeVariableDeclarationStatement
Результат void
        protected override void GenerateVariableDeclarationStatement(CodeVariableDeclarationStatement e)
        {
            base.Output.Write("LOCAL ");
            this.OutputIdentifier(e.Name);
            if (e.InitExpression != null)
            {
                base.Output.Write(" := ");
                this.GenerateExpression(e.InitExpression);
            }
            base.Output.Write(" AS ");
            this.OutputType(e.Type);
            if (!this.generatingForLoop)
            {
                base.Output.WriteLine();
            }
        }
XSharpCodeGenerator