Oct 27, 2015

What is difference between Convert.ToString() and .ToString()

Its a simple question for experienced C#/Asp.Net developer but its little confusing things for beginner.

Convert.ToString() generally used when we need to handle null value. it meant when data as null and used Convert.ToString() its return blank string.
Convert.ToString() handles null, while ToString() doesn't.

No comments:

Post a Comment