Reading this article I thougth automatic property work on .NET Framework 3.0, but some collegues substain it’s not true. Are they correct?
Reading this article I thougth automatic property work on .NET Framework 3.0, but some
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.
Automatically implemented properties don’t depend on the framework at all. They’re simply a part of the language. If you’re using a compiler which supports C# 3 and higher (and you haven’t explicitly set the language version) you’ll be fine, even targeting framework 2.0.
See my article on C# and .NET versions (which needs updating) for information about using C# 3 features when targeting versions of the framework before 3.5 (the framework version which first came with C# 3).