Geeks With Blogs
DevDevin

Default get/set accessors:

public class Person
{
   public string Name { get; set; }
   public int Age { get; set; }
}

Property initialization:

Person author = new Person { Name = "Jay Miller", Age = 40 };

From this article: http://www.codeguru.com/csharp/csharp/net30/article.php/c14427/

Posted on Tuesday, October 30, 2007 7:24 AM | Back to top

Copyright © Devin A. Rychetnik | Powered by: GeeksWithBlogs.net | Join free