Pages

Thursday, October 30, 2014

how to generate getters and setters in visual studio



My requirement was to generate 10 properties in the following format

public int ID { get; set; }

Visual studio has an shortcut for this, just type prop and then hit tab twice .


No comments:

Post a Comment