Apr
4th | 2008

Where is my BinaryReader.ReadFloat ?

Posted by Shahar Y |
Filed under C# |

BinaryReader is a class that reads primitive data types as binary values in a specific encoding (see MSDN for more details). The usage of this class is to read sequences of bytes usually created by reading a file, getting data from sockets and retrieving data from memory. After having the stream of bytes, we may [...]


Continue Reading...
Mar
11th | 2008

A Simple Example of Extention Methods in C# 3.0

Posted by Amit |
Filed under C# |

Extention Methods are a very useful tool we just got in C# 3.0. We could define them as static methods that extend existing classes, Even System classes!!!
If we wanted to do something like that in the past we had to derive from the selected class and extend it with whatever we wanted. But what if [...]


Continue Reading...

Search Dev102