Exemple #1
0
 public static object FromJson(Type type, string str)
 {
     return(MongoHelper.FromJson(type, str));
 }
Exemple #2
0
 public static string ToJson(object obj)
 {
     return(MongoHelper.ToJson(obj));
 }
Exemple #3
0
 public byte[] SerializeTo(object obj)
 {
     return(MongoHelper.ToBson(obj));
 }
Exemple #4
0
 public static T FromJson <T>(string str)
 {
     return(MongoHelper.FromJson <T>(str));
 }
Exemple #5
0
 public object DeserializeFrom(object instance, MemoryStream stream)
 {
     return(MongoHelper.FromBson(instance, stream));
 }
Exemple #6
0
 public object DeserializeFrom(Type type, MemoryStream stream)
 {
     return(MongoHelper.FromStream(type, stream));
 }
Exemple #7
0
 public object DeserializeFrom(object instance, byte[] bytes, int index, int count)
 {
     return(MongoHelper.FromBson(instance, bytes, index, count));
 }
Exemple #8
0
 public object DeserializeFrom(Type type, byte[] bytes, int index, int count)
 {
     return(MongoHelper.FromBson(type, bytes, index, count));
 }
Exemple #9
0
 public void SerializeTo(object obj, MemoryStream stream)
 {
     MongoHelper.ToBson(obj, stream);
 }