System.Data.FunctionNode.IsConstant C# (CSharp) Метод

IsConstant() приватный Метод

private IsConstant ( ) : bool
Результат bool
        internal override bool IsConstant()
        {
            // Currently all function calls with const arguments return constant.
            // That could change in the future (if we implement Rand()...)
            // CONSIDER: We could be smarter for Iif.

            bool constant = true;

            for (int i = 0; i < _argumentCount; i++)
            {
                constant = constant && _arguments[i].IsConstant();
            }

            Debug.Assert(_info > -1, "All function nodes should be bound at this point.");  // default info is -1, it means if not bounded, it should be -1, not 0!!

            return (constant);
        }