Blog

C# quick question.


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:
public string Foo{ get; set; }
better than this:
public string Foo;

The asnwer is (as often) on StackOverflow.

Labels:


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Optixsoft - Software Development For Fiber Optics. Copyright 2013. All rights Reserved.
optixsoft
Home  |   Company  |   Services  |   Products and solutions  |   Portfolio  |   Client care  |   Contacts  |   Blog  |   Site map