Tag Archive: c#

Microsoft .NET

The myth of misusage of the var keyword since C# 3.0

C# 3.0 introduced a new keyword, var. The var keyword allows you to utilize type inference at compile time which is a really cool feature. Here’s an extremely basic example. This should be self-explanatory: The compiler will resolve the local…
Read more

Microsoft .NET

Dangers of the public access modifier.

Did you know that the public access modifer in C# is essentially the equivalent to extern in C++? According to the C# 4.0 language specification, it is. People need to be careful with the public keyword. public in C# is not…
Read more

Microsoft .NET

Why abstraction can be detrimental.

The other day someone asked a question about the relation between the Socket class, and the UdpClient class. Specifically, what is the relation? While the answer is simple because UdpClient is merely wrapper around a UDP initialized socket, this also…
Read more