Blog

Microsoft .NET

Adding extension method support for .NET 2.0

.NET Framework 2.0 does not support extension methods out of the box, because you cannot reference System.Core that was introduced in .NET 3.5. However, by adding a simple attribute class you can use extension methods in .NET 2.0 as well….
Read more

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