skip to main
|
skip to sidebar
The Code is a Lie
Software, C#, T-SQL
Monday, August 18, 2008
Nullable handles Selected Value
I've found a nice use for the Nullable type:
int? iSelectedYear = (int?)cboYear.SelectedValue;
if(iSelectedYear.HasValue)
{
LoadReportByYear(iSelectedYear);
}
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Blog Archive
▼
2008
(1)
▼
August
(1)
Nullable handles Selected Value
►
2007
(5)
►
November
(1)
►
October
(2)
►
July
(1)
►
June
(1)
About Me
mize
View my complete profile