예제 #1
0
 public void Read(BinaryReader rd)
 {
     using (var sa = new StringStreamedCollection(rd.BaseStream, null, true, false))
     {
         _list     = sa.ToList();
         _encoding = sa.Encoding;
     }
 }
예제 #2
0
 public void Write(BinaryWriter wr)
 {
     using (var ms = new MemoryStream())
         using (var sa = new StringStreamedCollection(ms, SizeEncoding.B4, SizeEncoding.B4, _encoding, null, _list, true, false))
             wr.Write(ms.GetBuffer(), 0, (int)ms.Length);
 }