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

Simple Mdi Parent and MdiChild Winforms?

c# winforms

I have three forms 1 is Mdiparent and the other two is simple form (Form1 and Form2).

Restrict characters entered into a text_field

javascript ruby-on-rails ruby-on-rails-3

I have a text field where users enter a URL string, which cannot contain spaces or non-alphanumeric characters (if that's an accurate way of putting it).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.