How can i get 0 as integer value from (int)null.
(int)null
EDIT 1: I want to create a function that will return me default values for null representa
Check out this post for a mostly complete method for writing an extension to do just this. My scenario is pulling data from a NameValueCollection.
http://hunterconcepts.com/blog/Extensions_HttpRequestFormQueryString/