+ 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); }

27th Jun 2017, 11:50 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
2 Antworten
+ 4
um does it mean to position the reader cursor to the beginning again?
27th Jun 2017, 11:52 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 1
yes
27th Jun 2017, 11:54 AM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar