protected override object Read(byte token, BinaryReader r, ReaderContext ctx) { if (token == PrimaryId) { string s = r.ReadString(); ctx.CacheItem(s); return(s); } else { return(ctx.GetCache(r.ReadInt16())); } }
protected override object Read(byte token, BinaryReader r, ReaderContext ctx) { if (token == PrimaryId) { string type = r.ReadString(); string assembly = r.ReadString(); Type t = Assembly.Load(assembly).GetType(type); ctx.CacheItem(t); return(t); } else { return(ctx.GetCache(r.ReadInt16())); } }
protected override object Read (byte token, BinaryReader r, ReaderContext ctx) { if (token == PrimaryId) { string type = r.ReadString (); string assembly = r.ReadString (); Type t = Assembly.Load (assembly).GetType (type); ctx.CacheItem (t); return t; } else { return ctx.GetCache (r.ReadInt16 ()); } }
protected override object Read (byte token, BinaryReader r, ReaderContext ctx) { if (token == PrimaryId) { string s = r.ReadString (); ctx.CacheItem (s); return s; } else { return ctx.GetCache (r.ReadInt16 ()); } }