public DataFileTypeInfo GetTypeInfo() { string typename = GetTypeName(); if (!DataFileTypeInfo.ContainsType(typename)) { RegisterTypeInfo(typename); } return(DataFileTypeInfo.Get(typename)); }
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)); }
public static void Add(string t, DataFileTypeInfo i) { typeInfoCache[t] = i; }
public BaseDataFile Create() { return(DataFileTypeInfo.Get(TypeName).Create()); }