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
Position the caret over a class/struct with a missing ToString() method.
Select Generate ToString() from the VisualAids Code menu.
The result is:
To generate ToString() method for selected members
Select with the caret the class/struct members you would like to generate ToString() for.
Select Generate ToString() from the VisualAid's Code menu.
The result is:
See Also