A ToString Replacement that Recognizes Different Data Types

Most data types have a built-in ToString method, but not all, and what’s more, the default method can throw an error if, for example, the object is null.

Click here to read the article