public override void NonNullSerialize(U t, IFormatter f) { f.BeginList(t.Count); foreach (var item in t) { m_elementSerializer.Serialize(item, f); } f.EndList(); }
public override void Serialize(T t, IFormatter f) { m_stringSerializer.Serialize(t.ToString(), f); }
public void Serialize(ref T t, IFormatter f) { var u = m_getter(ref t); m_serializer.Serialize(u, f); }