Esempio n. 1
0
        public override MetaType GetMetaType(Type type)
        {
            if (type == null)
            {
                throw Error.ArgumentNull("type");
            }
            MetaType type2 = null;

            [email protected](-1);
            try
            {
                if (this.metaTypes.TryGetValue(type, out type2))
                {
                    return(type2);
                }
            }
            finally
            {
                [email protected]();
            }
            [email protected](-1);
            try
            {
                if (!metaTypes.TryGetValue(type, out type2))
                {
                    type2 = new UnmappedType(this, type);
                    metaTypes.Add(type, type2);
                }
            }
            finally
            {
                [email protected]();
            }
            return(type2);
        }
Esempio n. 2
0
        public override MetaType GetMetaType(Type type)
        {
            if (type == null)
            {
                throw ALinq.Error.ArgumentNull("type");
            }
            MetaType type2 = null;

            [email protected](-1);
            try
            {
                if (this.metaTypes.TryGetValue(type, out type2))
                {
                    return(type2);
                }
            }
            finally
            {
                [email protected]();
            }
            MetaTable table = this.GetTable(type);

            if (table != null)
            {
                return(table.RowType.GetInheritanceType(type));
            }
            this.InitFunctions();
            [email protected](-1);
            try
            {
                if (!metaTypes.TryGetValue(type, out type2))
                {
                    type2 = new UnmappedType(this, type);
                    metaTypes.Add(type, type2);
                }
            }
            finally
            {
                [email protected]();
            }
            return(type2);
        }