예제 #1
0
 public override void NonNullSerialize(U t, IFormatter f)
 {
     f.BeginList(t.Count);
     foreach (var item in t)
     {
         m_elementSerializer.Serialize(item, f);
     }
     f.EndList();
 }
예제 #2
0
 public override void Serialize(T t, IFormatter f)
 {
     m_stringSerializer.Serialize(t.ToString(), f);
 }
예제 #3
0
        public void Serialize(ref T t, IFormatter f)
        {
            var u = m_getter(ref t);

            m_serializer.Serialize(u, f);
        }