C# quick question.
Alex Che, 2009/09/22 02:14
Can you quickly specify three advantages of automatic property over public field, as a member of a class?
I.e., why is the following code:
I.e., why is the following code:
public string Foo{ get; set; } better than this:The asnwer is (as often) on StackOverflow.public string Foo;
Labels: csharp

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home