I need info about how “auto implemented” pertains to c# is and how and where I can use it?
Share
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.
The nearest thing I can think of to what you’re saying is Auto-Implemented Properties.
Pre C# 3.0, if you wanted to write a public property, you would need to do the following:
It has no logic and is a lot of boilerplate code really.
Now in C# 3.0, you can go:
The framework takes care of all the boilerplate stuff for you. You can mix and match different visibility levels of the getters / setters too, as long as you still obey the same rules as traditional properties.