Yea.Reflection.Emit.Commands.If.If C# (CSharp) Method

If() public method

Constructor
public If ( Comparison comparisonType, VariableBase leftHandSide, VariableBase rightHandSide ) : System.Reflection.Emit
comparisonType Comparison Comparison type
leftHandSide Yea.Reflection.Emit.BaseClasses.VariableBase Left hand side
rightHandSide Yea.Reflection.Emit.BaseClasses.VariableBase Right hand side
return System.Reflection.Emit
        public If(Comparison comparisonType, VariableBase leftHandSide, VariableBase rightHandSide)
        {
            ILGenerator generator = MethodBase.CurrentMethod.Generator;
            EndIfLabel = generator.DefineLabel();
            EndIfFinalLabel = generator.DefineLabel();
            if (leftHandSide != null)
                LeftHandSide = leftHandSide;
            else
                LeftHandSide = MethodBase.CurrentMethod.CreateConstant(null);
            if (rightHandSide != null)
                RightHandSide = rightHandSide;
            else
                RightHandSide = MethodBase.CurrentMethod.CreateConstant(null);
            ComparisonType = comparisonType;
        }