I've found a nice use for the Nullable type:
int? iSelectedYear = (int?)cboYear.SelectedValue;
if(iSelectedYear.HasValue)
{
LoadReportByYear(iSelectedYear);
}
Monday, August 18, 2008
Subscribe to:
Post Comments (Atom)
Software, C#, T-SQL
No comments:
Post a Comment