示例#1
0
        public bool TryGetValue(string key, out EquatableObject value)
        {
            Contracts.AssertValue(key);
            bool fRet = RedBlackNode <EquatableObject> .TryGetValue(_root, key, out value);

            Contracts.Assert(fRet == (value.Object != null));
            return(fRet);
        }
示例#2
0
        public bool TryGetValue(string key, out DType value)
        {
            Contracts.AssertValue(key);
            bool fRet = RedBlackNode <DType> .TryGetValue(_root, key, out value);

            value = value ?? DType.Invalid;
            Contracts.Assert(fRet == value.IsValid);
            return(fRet);
        }