Why C# append get on property in class written in VB.net?

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.


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.

Need Your Help

Rails to_param using non-id field?

ruby-on-rails permalinks

Instead of using a row's id field to generate slugs (like this):

incompatible types and fresh type-variable

java generics

I get the following compilation message: