Not() public method

public Not ( QilNode child ) : QilUnary
child QilNode
return QilUnary
Exemplo n.º 1
0
        public QilNode Not(QilNode child)
        {
            if (!_debug)
            {
                switch (child.NodeType)
                {
                case QilNodeType.True:
                    return(_f.False());

                case QilNodeType.False:
                    return(_f.True());

                case QilNodeType.Not:
                    return(((QilUnary)child).Child);
                }
            }
            return(_f.Not(child));
        }