System.CodeDom.Tests.CodeGenerationTests.CreateVariableIncrementExpression C# (CSharp) 메소드

CreateVariableIncrementExpression() 보호된 정적인 메소드

protected static CreateVariableIncrementExpression ( string variableName, object primitive ) : CodeStatement
variableName string
primitive object
리턴 CodeStatement
        protected static CodeStatement CreateVariableIncrementExpression(string variableName, object primitive) =>
            new CodeAssignStatement(
                new CodeVariableReferenceExpression(variableName),
                new CodeBinaryOperatorExpression(new CodeVariableReferenceExpression(variableName), CodeBinaryOperatorType.Add, new CodePrimitiveExpression(primitive)));