Just got back from the Sydney .NET users group, while the turn out wasn’t as good as last week the information covered was good. 

Nullable Types

You heard it first at SDNUG. (Well maybe not first but at least the first presentation on it)  They are introducting a concept in C# that allows you to treat primative types (int, double) and other value types like object types in terms of setting them to null. So what does this mean

Currently in the .NET if you try to do int i=null; you get a compile time error.  Now, because of generics the C# team have added a generic called System.Nullable <T>.  Basically what it allows is for you to say something like System.Nullable<int>  

Advertisements