public object DeserializeFrom(object instance, MemoryStream stream) { return(MongoHelper.FromBson(instance, stream)); }
public byte[] SerializeTo(object obj) { return(MongoHelper.ToBson(obj)); }
public object DeserializeFrom(object instance, byte[] bytes, int index, int count) { return(MongoHelper.FromBson(instance, bytes, index, count)); }
public object DeserializeFrom(Type type, MemoryStream stream) { return(MongoHelper.FromStream(type, stream)); }
public object DeserializeFrom(Type type, byte[] bytes, int index, int count) { return(MongoHelper.FromBson(type, bytes, index, count)); }
public void SerializeTo(object obj, MemoryStream stream) { MongoHelper.ToBson(obj, stream); }
public static string ToJson(object obj) { return(MongoHelper.ToJson(obj)); }
public static object FromJson(Type type, string str) { return(MongoHelper.FromJson(type, str)); }
public static T FromJson <T>(string str) { return(MongoHelper.FromJson <T>(str)); }