Is there a ToString() generator available in Visual Studio 2010?

前端 未结 11 837
伪装坚强ぢ
伪装坚强ぢ 2021-01-03 17:39

Is there any way to generate a ToString() using Visual Studio 2010?

I really don\'t want to do this by hand!

[EDIT]

I\'m looking for a s

11条回答
  •  醉酒成梦
    2021-01-03 18:21

    ToString() is a method sitting on object so you do not need to add that to all your classes, only if you need to override and change behaviour.

提交回复
热议问题