How do I generate a constructor from class fields using Visual Studio (and/or ReSharper)?

前端 未结 12 1804
有刺的猬
有刺的猬 2020-11-27 12:54

I\'ve gotten accustomed to many of the Java IDEs (Eclipse, NetBeans, and IntelliJ IDEA) providing you with a command to generate a default constructor for a class based on t

12条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 13:58

    For Visual Studio 2015 I found an extension that does just this. It seems to work well and has a reasonably high amount of downloads. So if you can't or don't want to use ReSharper you can install this one instead.

    You can also acquire it via NuGet.

提交回复
热议问题