Microsoft.Zing.Scanner.ScanPPEqualityExpression C# (CSharp) Méthode

ScanPPEqualityExpression() private méthode

private ScanPPEqualityExpression ( char &c ) : bool
c char
Résultat bool
        private bool ScanPPEqualityExpression(ref char c)
        {
            bool result = this.ScanPPUnaryExpression(ref c);
            while (c == '=' || c == '!')
            {
                char c2 = this.GetChar(this.endPos++);
                if (c == '=' && c2 == '=')
                {
                    c = this.SkipBlanks();
                    bool opnd2 = this.ScanPPUnaryExpression(ref c);
                    result = result == opnd2;
                }
                else if (c == '!' && c2 == '=')
                {
                    c = this.SkipBlanks();
                    bool opnd2 = this.ScanPPUnaryExpression(ref c);
                    result = result != opnd2;
                }
                else
                {
                    this.startPos = this.endPos - 2;
                    this.HandleError(Error.InvalidPreprocExpr);
                    this.SkipSingleLineComment();
                    c = (char)0x0A;
                    return true;
                }
            }
            return result;
        }