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

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