System.Xml.Serialization.CodeGenerator.InternalIf C# (CSharp) Method

InternalIf() private method

private InternalIf ( bool negate ) : void
negate bool
return void
        private void InternalIf(bool negate)
        {
            IfState ifState = new IfState();
            ifState.EndIf = DefineLabel();
            ifState.ElseBegin = DefineLabel();
            if (negate)
                Brtrue(ifState.ElseBegin);
            else
                Brfalse(ifState.ElseBegin);
            _blockStack.Push(ifState);
        }