03 July 2014

Nullable datatype in c#

int? ins = null;
ins = 4;
if(ins.HasValue)
{
int a = ins.Value;
}

No comments: