jatpat / lidgren-network-gen3

Automatically exported from code.google.com/p/lidgren-network-gen3
0 stars 0 forks source link

NetIncommingMessage.ReadByte hiding #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The class NetIncommingMessage has method "byte ReadByte()" while 
System.IO.Stream has method "int ReadByte()", therefore ReadByte method is 
hidden.

Solution:
- NetIncommingMessage must override Stream.ReadByte instead of current method 
ReadByte.
- Optional add additional method (e.g. ReadAByte) which returns byte and not 
int.

Original issue reported on code.google.com by NN1436401@gmail.com on 25 Jul 2010 at 10:44

GoogleCodeExporter commented 9 years ago
Added new keyword to remove warning; not optimal but I don't want the confusion 
of multiple ReadByte methods

Original comment by lidg...@gmail.com on 10 Aug 2010 at 11:24