I'm wondering whether there's any significant performance (or correctness) difference in using private fields in class constructors, instead of Properties that change those private fields.
Sample:
class Pt<T>
{
public Pt(T _x, T _y) // More efficient/correct?
{
this.x = _x; // or x = _x
this.y = _y; // or y = _y
}
public Pt(T _x, T _y) // Less efficient/correct?
{
X = _x;
Y = _y;
}
private T x, y;
T X { get { return x; } set { x = value; } }
T Y { get { return y; } set { y = value; } }
}