I was hoping to see if there is an easy way to Replace ().ToString() with Convert.ToString() throughout the application using Code Resharper or CodeRush or any other tool ?
Thanks
I was hoping to see if there is an easy way to Replace ().ToString() with Convert.ToString() throughout the application using Code Resharper or CodeRush or any other tool ?
Thanks
object.ToString() does not equal Convert.ToString(). The former will thrown an exception if object is null, so making the changes you suggested would be a breaking change because the application may handle the exception, for example.
See this post: Difference between Convert.ToString() and .ToString()