In certain contexts, such as when concatenating a string and an object, calling ToString explicitly can be omitted.

Remove the redundant call to ToString.

In the following example, ToString is called explicitly on o, before being passed to string.Format.

In the revised example, the call to ToString is omitted, as string.Format will invoke ToString implicitly.

  • MSDN: + Operator, String.Format method.