public void Write(BinaryWriter wr) { using (var ms = new MemoryStream()) using (var sc = new NulDateTimeStreamedCollection(ms, SizeEncoding.B4, true, _list, true, false)) wr.Write(ms.GetBuffer(), 0, (int)ms.Length); }
public void Read(BinaryReader rd) { using (var sa = new NulDateTimeStreamedCollection(rd.BaseStream, true, false)) _list = sa.ToList(); }