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

前端 未结 11 833
伪装坚强ぢ
伪装坚强ぢ 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:32

    Maybe you should take a look at AutoCode 4.0. It is a Visual Studio extension which will brings some snippets with it.

    For example you could somewhere within your class simply write tostr and press Ctrl+Enter and it will automatically generate the ToString() method that concatenates all public properties of the class.

提交回复
热议问题