blog comments 0 del.icio.us bookmarks 0 diggs 0 Google results 0

1.0
PostRank

Automatic Properties - In case you didn't know

CodeBetter.Com From CodeBetter.Com, 9 months ago, 0 views

The following snippet of code (C# 3.5) is allowable, and gives you the benefit of unnecessary extra verbosity with the benefits of encapsulation. Of course, if you need to implement logic in your property, then you don't want to think about automatic properties:

public T Item { get; private set; }

comments

No comments yet.

You must be logged in to add your own comment.