public static XmlSerializator getInstance() { if (instance == null) { instance = new XmlSerializator(); } return(instance); }
private SerializationManager() { serialozators = new Dictionary <SerializationFormat, ISerializator>(); RegisterSerializator(BinarySerializator.getInstance()); RegisterSerializator(BsonSerializator.getInstance()); RegisterSerializator(JsonSerializator.getInstance()); RegisterSerializator(XmlSerializator.getInstance()); }