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

前端 未结 12 1809
有刺的猬
有刺的猬 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:37

    In Visual Studio click on one of the fields -> click the light bulb -> Generate Constructors -> Select the fields

提交回复
热议问题