Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can resharper generate tostrings that includes all of the classes properties?

I use IntelliJ (java) IDE and it can easily generate a really nice toString() for any class that includes all the properties etc.

So in my log4net I want to output the deserialized version of a class.

Can resharper do this or do I have to manually do it myself?

like image 409
loyalflow Avatar asked Apr 24 '13 18:04

loyalflow


People also ask

How do I create a ToString method in Visual Studio?

To use it just put your cursor on the class name and click on the lightbulb or "Ctrl + .", between the several option there will be "Generate ToString()".


1 Answers

Yes it can. Look at help topic Generating Formatting Members.

like image 66
Piotr Stapp Avatar answered Oct 14 '22 01:10

Piotr Stapp