I am a seasoned Python developer and have come to love a lot of its conveniences. I have actually known C# for some time but recently have gotten into some more advanced cod
BinaryWriter and BinaryReader will send arbitrary items to a byte array or read arbitrary items from a byte array
var str = new MemoryStream(); var bw = new BinaryWriter(str); bw.Write(42); bw.Write("hello"); ... var bytes = str.ToArray();