/// <summary>Add the given factory into the internal list.</summary> /// <param name="Factory">The factory to add.</param> public static void Add(ISerializerFactory <Stream> Factory) { //If an older factory exists if (Serialization._Factories.ContainsKey(Factory.Name)) { //Transfer info ISerializerFactory <Stream> Old = Serialization._Factories[Factory.Name]; Factory.SetDeserializeType(Old.GetDeserializeType()); Factory.SetSerializeType(Old.GetSerializeType()); } //Add factory to list Serialization._Factories[Factory.Name] = Factory; }