public override void Save(TDictionary obj, CtpObjectWriter writer) { if (obj == null) { writer.Write(CtpObject.Null); } else { writer.Write(obj.Count()); foreach (var item in obj) { m_serializeT.Save(false, item.Key, item.Value, writer); } } }
public override void Save(KeyValuePair <TKey, TValue> obj, CtpObjectWriter writer) { writer.Write(true); m_serializeT.Save(false, obj.Key, obj.Value, writer); }