Thursday 29 May 2014

Nullable Types in C#


Any value type may be used as the basis for a nullable type. For example:
int? i = 10;
double? d1 = 3.14;
bool? flag = null;
char? letter = 'a';
int?[] arr = new int?[10];
string, object are reference type

No comments:

Post a Comment