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