Is there a short way to create the getter and setter in c#?
public string fname {get; set;}
Is there short hand to generate {get; set;}?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
yea type prop and press TAB. Visual Studio has a snippet for automatic property.
For property with public get and private set, you can use propg and press TAB.
For complete non auto property you can use propfull and press TAB.