+ 2
what means ms.position here c#
try { using (Stream ms = new MemoryStream(6)) { ms.WriteByte(9); ms.WriteByte(11); ms.WriteByte(6); ms.WriteByte(8); ms.WriteByte(3); ms.WriteByte(7); ms.Position = 0; int rs = ms.ReadByte(); Console.WriteLine(rs); rs = ms.ReadByte(); } } catch (IOException e) { Console.WriteLine(e.Message); }
2 Antworten
+ 4
um does it mean to position the reader cursor to the beginning again?
+ 1
yes