"Jesse Phillips" <[email protected]> wrote in message news:[email protected]... > > I find writing > > property int foo { get; set;} > > More work than > > public int foo;
That's an unfair apples-to-oranges comparison.
This:
property int foo { get; set;}
Is comparable to this current code:
private int _foo;
int foo()
{
return _foo;
}
int foo(int value)
{
_foo = value;
return value;
}
It is *not* comparable to:
public int foo;
