KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I write string date = "12/2/2011"; DateTime? dt = date ?? DateTime.Parse(date); this throws a compile time error. I know I can do tryparse or do if {} . Is there any way to do this in one line?
Tags (comma-separated)
Save Edits
Cancel