I know Convert.ToString(obj) handles null value and ToString(obj) doesn't handle null value.It means it will throw an error if the obj value is null.
ex:- object b = null; textBox1.Text = b.ToString(); // It will throw a null reference exception because the object value is null. It is correct and working as expected. But,
ex:- int? c = null; textBox1.Text = c.ToString(); I tried in this way. But in this case it is not throwing null reference exception error. Why it is not throwing null reference exception error. Can anyone answer?
Suggestions welcome.