Beispiel #1
0
        public void WriteSimpleStruct <T>(T obj) where T : struct
        {
            byte[] bytes = StructConverter.StructToBytes(obj);

            Write(bytes);
        }
Beispiel #2
0
 public static byte[] WriteSimpleStruct <T>(T obj) where T : struct
 {
     return(StructConverter.StructToBytes(obj));
 }