public static void LoadBson() { var p = "test.bson"; var f = File.Open(p, FileMode.Open); var c = new C(); var b = new jw.Bson(jw.Bson.Context11); b.IsDebug = true; b.Deserialize(f, c); f.Close(); Console.WriteLine(b.DebugOutput); }
public static void SavaBson() { var a = new A(); var p = "test.bson"; var f = File.Open(p, FileMode.Create); var b = new jw.Bson(jw.Bson.Context11); b.IsDebug = true; b.Serialize(a, f); f.Close(); Console.WriteLine(b.DebugOutput); }