예제 #1
0
        public byte[] ToArray()
        {
            MemoryStream stream = new MemoryStream();
            BinaryWriter writer = new BinaryWriter(stream);

            writer.Write(ConverterHelper.GetBytes(Content));
            writer.Write(PreviousItem);

            return(stream.ToArray());
        }
예제 #2
0
파일: Index.cs 프로젝트: jamie-lord/Imuject
 public void SetAtIndex(int index, T obj)
 {
     byte[] data = ConverterHelper.GetBytes(obj);
     SetAtIndex(index, data);
 }