Welcome to MSDN Blogs Sign in | Join | Help

September 2008 - Posts

Too much type information, or welcome back System.Object and boxing

We all know that generics are good - they promote code reuse, static type checking by the compiler, increase runtime performance, allow more flexible OOP designs, lay the foundation for LINQ, help the IDE to provide more helpful IntelliSense and have
Posted by Kirill Osenkov | 22 Comments
Filed under:

More comments on generics

Here are some more unsorted thoughts on generics to continue this post (which has some interesting comments too). Preserving types with generic type inference To reiterate, instead of having a method like: void Process( object instance) { } one can write:
Posted by Kirill Osenkov | 9 Comments
Filed under:

Why a comparison of a value type with null is a warning?

A reader (Petar Petrov) asked me a question recently which I didn't quite know how to answer: Why a comparison of a value type against null is a warning? I definitely think it should be a compiler error. So I asked the C# compiler team and here's the
Posted by Kirill Osenkov | 4 Comments
Filed under:
 
Page view tracker