Exemplo n.º 1
0
        public static ReflectedStructureType For(Type type)
        {
            if (Cache == null)
            {
                Cache = new Dictionary <Type, ReflectedStructureType>();
            }

            if (Cache.ContainsKey(type) == true)
            {
                return(Cache[type]);
            }

            return(Cache[type] = new ReflectedStructureType(type));
        }
        public static ReflectedStructureType For(Type type)
        {
            if (Cache == null)
            {
                Cache = new Dictionary<Type, ReflectedStructureType>();
            }

            if (Cache.ContainsKey(type) == true)
            {
                return Cache[type];
            }

            return Cache[type] = new ReflectedStructureType(type);
        }