Tuesday, May 10, 2011

C# – Null-coalescing operator(??)

object obj = null;
string s = (obj ?? “”).ToString();

No comments:

Post a Comment