C# 3.0, before and after.

Before (C# 2.0):
    public class Speech : EntityBase<Speech>
    {

        
private string _Body;
        public string 
Body
        {
            
get
            
{
                
return _Body;
            
}
            
set
            
{
                _Body 
= value;
            
}
        }

        
private string _ExtendedBody;
        public string 
ExtendedBody
        {
            
get
            
{
                
return _ExtendedBody;
            
}
            
set
            
{                
                _ExtendedBody 
= value;
            
}
        }


        
private User _User;
        public 
User User
        {
            
get
            
{
                
return _User;
            
}
            
set
            
{
                
_User = value;
            
}
        }

        
private SpeechTopic _Topic;
        public 
SpeechTopic Topic
        {
            
get
            
{
                
return _Topic;
            
}
            
set
            
{
                _Topic 
= value;
            
}
        }

    }
After (C# 3.0):

    
public class Speech : EntityBase<Speech>
    {       
        
public string Body {get; set;}
               

        
public string ExtendedBody {get; set;}
       

        
public User User {get; set;}
       

        
public SpeechTopic Topic {get; set;}
    }


Oh Visual Studio 2008, please hurry up.
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Comments

# re: C# 3.0, before and after.
Gravatar Definitely, the post is actually the freshest on this worthw hile theme. I come to an agreement with each of your findings and will desperately look forward to your future updates. Saying thankx is not going to just be enough, for the phenomenal clarity in your article. I will instantly get your feed to stay privy of any updates. Genuine work and much success in your business endeavors. Thanks a lot, !
Left by board games on 3/27/2010 4:45 PM

Leave Your Comment

Title*
Name*
Email (never displayed)
 (will show your gravatar)
Url
Comment*

 

Preview Your Comment.