I could have sworn that I saw a quick demo of new features in VS 2008 which included a way to set public variables without creating numerous constructors that take variables and set them to values. Does anyone know the syntax for this?
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.
You may be talking about the Object Initializers like…this is a feature of C# 3.0 and VB.NET 9.
and in c#