What do you prefer?
1)
private int m_foo;
public int Foo
{
get { return m_foo; }
set { m_foo = value; }
}
3)public int Foo { get; set; }
public:
property int Foo;
The first is C#, the second C# 3.0 and the third one is C++/CLI
random ramblings about mostly tech stuff...
No comments:
Post a Comment