ReSharper Web Help

To create an override for ToString() method
  1. In the editor, place the caret within a class.
  2. On the main menu, choose ReSharper | Edit | Generate Code, or press Alt+Insert.
  3. From the Generate pop-up menu, select Formatting members.
  4. When the Generate wizard opens, select fields and/or auto-properties to be wrapped with the ToString() override.
    Generate Formatting Members
    Optionally, select Copy Xml documentation to copy XML documentation for the ToString() method.
  5. Click Finish. ReSharper will generate the override returning a format string with selected fields:
    Generate Formatting Members

 Note

You can also generate the override by choosing Overriding Members in the Generate menu, but if you do so, the override will return base.ToString().

See Also

Procedures