Ejemplo n.º 1
0
 public static JsonSerializator getInstance()
 {
     if (instance == null)
     {
         instance = new JsonSerializator();
     }
     return(instance);
 }
        private SerializationManager()
        {
            serialozators = new Dictionary <SerializationFormat, ISerializator>();

            RegisterSerializator(BinarySerializator.getInstance());
            RegisterSerializator(BsonSerializator.getInstance());
            RegisterSerializator(JsonSerializator.getInstance());
            RegisterSerializator(XmlSerializator.getInstance());
        }