예제 #1
0
        public static Field Lookup(this Schema source, string name)
        {
            Field result;

            if (!source.TryLookup(name, out result))
            {
                throw new MemberNotFoundException(name, source);
            }
            return(result);
        }
예제 #2
0
        public bool TryGetField(string name, out IEditable result)
        {
            Field f;

            result = null;

            if (schema.TryLookup(name, out f))
            {
                result = GetField(f.Index);
                return(true);
            }

            return(false);
        }