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?
tryparse or do if {}