What's the best way to check if a string is a valid year using C#?
I currently have a dropdown list that contains the values {'All','2009','2008'} etc, and I want to know whether the selection is one of the dates or the 'All' field.
Currently I'm checking for bool isYearValid = (Year.ToLower() == "all") ? false : true;
How do I check whether the value is a valid year so that I don't have to have this hardcoded check for 'All'?