Before:
public class Person { private string name; public string Name { get { return name; } set { name = value; } } }After:
public class Person { public string Name { get; set; } }More Info: MSND: Auto-Implemented Properties
Subscribe to this rss feed to get your .NET tips from Mark Moeykens and his friends.
public class Person { private string name; public string Name { get { return name; } set { name = value; } } }After:
public class Person { public string Name { get; set; } }More Info: MSND: Auto-Implemented Properties