/ Published in: C#
Expand |
Embed | Plain Text
if (DateTime.TryParse(Request.QueryString["Date"], out calDate)) { }
Comments
Subscribe to comments
You need to login to post a comment.
krisdb on 09/02/09
1 person have marked this snippet as a favorite
if (DateTime.TryParse(Request.QueryString["Date"], out calDate)) { }
Subscribe to comments
You need to login to post a comment.
out-parameters doesn't need to be instantiated - you can safe a little bit CPU-Time
DateTime date; if(DateTime.TryParse("...",out date)) { ... }
Good to know, thanks.