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

ElseIf() public method

Defines an else if statement
public ElseIf ( VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide ) : void
leftHandSide Yea.Reflection.Emit.BaseClasses.VariableBase left hand side value
comparisonType Comparison Comparison type
rightHandSide Yea.Reflection.Emit.BaseClasses.VariableBase right hand side value
return void
        public virtual void ElseIf(VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide)
        {
            ILGenerator generator = MethodBase.CurrentMethod.Generator;
            generator.Emit(OpCodes.Br, EndIfFinalLabel);
            generator.MarkLabel(EndIfLabel);
            EndIfLabel = generator.DefineLabel();
            MethodBase.CurrentMethod.Commands.Add(new ElseIf(EndIfLabel, comparisonType, leftHandSide, rightHandSide));
        }