Пример #1
0
        private object GetKey(string key)
        {
            IMapping map = data as IMapping;

            if (map == null)
            {
                throw Ops.TypeError("format requires a mapping");
            }

            object res = map.GetValue(key, this);

            if (res != this)
            {
                return(res);
            }

            throw Ops.KeyError(key);
        }