Properties in .Net 3.0 and above


If you analysis the version of the languages, really its eliminating the works of the programmers.

Initially we were designing every thing in the code.Then they introduced the GUI. Just drag and drop the controls. There we have to do only limited actions and apply business logic.

Here i would like to discuss about the properties.

As you know we were doing like this in 1.0 and 2.0

private string _FirstString;

public string FirstString
{

   get
   {
       return _FirstString;
   }
   set
   {
        _FirstString = value;
    }
}


Now the microsoft .net latest versions have the feature like

 public string FirstString
 {

    get;
    set;
 }


So, the new language simplify the coding work and allow us to do the rapid application development.

Here they handle this property assigning implicitly.


Thanks and Regards,
Erode Senthilkumar

"Happy Coding"
Ebook Download
View all
Learn
View all