Prevent visual studio from limiting the setter method to internal

前端 未结 3 810
情话喂你
情话喂你 2020-12-31 01:44

Well, I use visual studio 2015 CE, update 2. One productivity hack I usually do is that I create empty model classes like:

public class PersonModel
{
}
         


        
3条回答
  •  一生所求
    2020-12-31 02:34

    So my question is: is there any option to ask VS to create public setter, i.e.:

    No, there is no way to modify the shortcut to automatically add the property with a public set. Although your productivity hack is neat, your best bet is to create it yourself.

提交回复
热议问题