Geeks With Blogs
Rui Machado Technologies and Information Systems Windows Phone 7
Nullable types and ?? operator C# [en-US]
Nullable types vs Non-nullable types While developing our C# projects its frequent the null comparison operation to avoid null exceptions. This simple operation is mainly coded using the "var x = null" code example inside an if clause. However not all types of variables are nullable, which means that setting a variable to null is not allowed in every cases, it depends on what kind of type are you defining. But what if there was an extension to your non-nullable type that would convert your variable ......

Posted On Sunday, October 7, 2012 10:00 PM

Copyright © ruimachado | Powered by: GeeksWithBlogs.net