Esempio n. 1
0
        /// Return MetaType
        public static fsMetaType Get(Type type)
        {
            fsMetaType metaType;

            if (_metaTypes.TryGetValue(type, out metaType) == false)
            {
                metaType         = new fsMetaType(type);
                _metaTypes[type] = metaType;
            }

            return(metaType);
        }
Esempio n. 2
0
        public static fsMetaType Get(fsConfig config, Type type)
        {
            Dictionary <Type, fsMetaType> metaTypes;

            if (_configMetaTypes.TryGetValue(config, out metaTypes) == false)
            {
                metaTypes = _configMetaTypes[config] = new Dictionary <Type, fsMetaType>();
            }

            fsMetaType metaType;

            if (metaTypes.TryGetValue(type, out metaType) == false)
            {
                metaType        = new fsMetaType(config, type);
                metaTypes[type] = metaType;
            }

            return(metaType);
        }
        public static fsMetaType Get(Type type)
        {
            fsMetaType metaType;
            if (_metaTypes.TryGetValue(type, out metaType) == false) {
                metaType = new fsMetaType(type);
                _metaTypes[type] = metaType;
            }

            return metaType;
        }
Esempio n. 4
0
        public static fsMetaType Get(fsConfig config, Type type)
        {
            Dictionary<Type, fsMetaType> metaTypes;
            if (_configMetaTypes.TryGetValue(config, out metaTypes) == false)
                metaTypes = _configMetaTypes[config] = new Dictionary<Type, fsMetaType>();

            fsMetaType metaType;
            if (metaTypes.TryGetValue(type, out metaType) == false) {
                metaType = new fsMetaType(config, type);
                metaTypes[type] = metaType;
            }

            return metaType;
        }