Difference between ‘int?’ and ‘int’ in C#?

int? is shorthand for Nullable<int>.

int? allows you to have “null” values in your int.

Check my
1. https://sriramjithendra.wordpress.com/2013/08/28/null-coalescing-operator-in-c/

2. https://sriramjithendra.wordpress.com/2013/08/28/when-should-we-use-nullable-types-in-c/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s