What would be the VB.NET equivalent of this code..
public virtual ICollection<Comment> Comments { 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.
VB.NET (in version 10) has automatic properties just like C#. The equivalent syntax is as follows:
The automatic converters tend to produce syntax that is more verbose than necessary. You can expand it if you want, but it’s not strictly necessary unless you’re using an older version of the compiler: