TheChaseMan's Frenetic SoapBox

Always looking for better ways to do things...

Correction...errrrr, improvement maybe?

Hey, this was cool...

bool? b = (bool?)ViewState["Required"];
return b ?? false;

Hey, this is more cool...

return (bool)(ViewState["Required"]) ?? false;


Digg!

posted on Thursday, December 08, 2005 7:58 PM

Feedback

No comments posted yet.