Telerik® JustCode™ by Progress

Generate ToString() auto-generates a basic ToString() method which will return a string containing all class members and their values formatted in an easy to read way.

Note

Language Support

Supported: C#, VB.NET

Not relevant: ASP.NET, XAML, JavaScript, HTML

To generate ToString() method for all class/struct members

  1. Position the caret over a class/struct with a missing ToString() method.

  2. Select Generate ToString() from the VisualAids Code menu.

    Generate To String All Members
  3. The result is:

    Generate To String All Members Result

To generate ToString() method for selected members

  1. Select with the caret the class/struct members you would like to generate ToString() for.

  2. Select Generate ToString() from the VisualAid's Code menu.

    Generate To String Selection
  3. The result is:

    Generate To String Selection Result

See Also