protected override void Write(BinaryWriter w, object o, WriterContext ctx) { if (ctx.RegisterCache(o)) { w.Write(SecondaryId); w.Write(ctx.Key); } else { w.Write(PrimaryId); w.Write((string)o); } }
protected override void Write(BinaryWriter w, object o, WriterContext ctx) { if (ctx.RegisterCache(o)) { w.Write(SecondaryId); w.Write(ctx.Key); } else { w.Write(PrimaryId); w.Write(((Type)o).FullName); // We should cache the name of the assembly w.Write(((Type)o).Assembly.FullName); } }
protected override void Write (BinaryWriter w, object o, WriterContext ctx) { if (ctx.RegisterCache (o)) { w.Write (SecondaryId); w.Write (ctx.Key); } else { w.Write (PrimaryId); w.Write (((Type) o).FullName); // We should cache the name of the assembly w.Write (((Type) o).Assembly.FullName); } }
protected override void Write (BinaryWriter w, object o, WriterContext ctx) { if (ctx.RegisterCache (o)) { w.Write (SecondaryId); w.Write (ctx.Key); } else { w.Write (PrimaryId); w.Write ((string)o); } }