If we make any class in VB.NET and try to access its property in C# by making object of that class. get_ is appended in the property. Can any one please explain the reason.
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.
Oh it may be because the whole:
get{}set{}business actually translates into the equivalent of:
get_PropertyNameset_PropertyNameIn the IL code. The whole property stuff we write (in either
VBorC#) is just syntactic sugar.