Beispiel #1
0
        public ConvertorCollection <T> Register <T>(StreamMetaInfo streamMetaInfo)
        {
            var key = typeof(T);
            ConvertorCollection v;

            if (!map.TryGetValue(key, out v))
            {
                v = new ConvertorCollection <T> {
                    MetaInfo = streamMetaInfo
                };
                map.Add(key, v);
            }

            v.MetaInfo = streamMetaInfo;
            return((ConvertorCollection <T>)v);
        }
Beispiel #2
0
 protected ConvertorCollection <T> RegisterType <T>(StreamMetaInfo streamMetaInfo)
 {
     return(collection.Register <T>(streamMetaInfo));
 }