Is there a more concise way of writing
string aString = someObj == null ? null : someObj.ToString();
i.e. if someObj is a null reference then return a null string, otherwise call ToString() on the object and return that?
Convert.ToString() doesn't help because it returns String.Empty(); I'm passing the result to an XML serializer and I want there to be no element if the object is null, not an empty one.