Exemplo n.º 1
0
        public DataFileTypeInfo GetTypeInfo()
        {
            string typename = GetTypeName();

            if (!DataFileTypeInfo.ContainsType(typename))
            {
                RegisterTypeInfo(typename);
            }

            return(DataFileTypeInfo.Get(typename));
        }
Exemplo n.º 2
0
        public void RegisterTypeInfo(string typename)
        {
            registerPropertyCollector    = new List <DataFileTypeInfoProperty>();
            registerConstructorCollector = null;

            Configure();

            if (registerConstructorCollector == null)
            {
                throw new ArgumentException("No Serialization constructor specified");
            }

            DataFileTypeInfo.Add(typename, new DataFileTypeInfo(typename, registerPropertyCollector, registerConstructorCollector));
        }
Exemplo n.º 3
0
		public static void Add(string t, DataFileTypeInfo i)
		{
			typeInfoCache[t] = i;
		}
 public BaseDataFile Create()
 {
     return(DataFileTypeInfo.Get(TypeName).Create());
 }
Exemplo n.º 5
0
 public static void Add(string t, DataFileTypeInfo i)
 {
     typeInfoCache[t] = i;
 }