Well in C# 3.0 you reduce this:

public class Person 
{    
   string _FirstName;
   string _LastName;

   public string FirstName 
   {
        get { return _FirstName; }
        set { _FirstName = value; }
   }

   public string LastName 
   {
        get { return _LastName; }
        set { _LastName = value; }
   }
}

to the following, which is a lot neater:

public class Person 
{    
   public string FirstName  { get; set; }
   public string LastName  { get; set; }
}  

Can't get much briefer that that can you.

Dave

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to