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.
+1
A:
Oh it may be because the whole:
- get{}
- set{}
business actually translates into the equivalent of:
- get_PropertyName
- set_PropertyName
In the IL code. The whole property stuff we write (in either VB or C#) is just syntactic sugar.
Quibblesome
2008-11-21 10:13:03