Example #1
0
        public static ComponentType Get(Type type)
        {
            ComponentType value;

            if (!Cache.TryGetValue(type, out value))
            {
                value = new ComponentType(type);
                Cache.Add(type, value);
            }

            return value;
        }
Example #2
0
 public Component()
 {
     Type = ComponentType.Get(GetType());
 }