Comment je peux utiliser les constructeurs en C# comme ceci :
public Point2D(double x, double y)
{
// ... Contracts ...
X = x;
Y = y;
}
public Point2D(Point2D point)
{
if (point == null)
ArgumentNullException("point");
Contract.EndContractsBlock();
this(point.X, point.Y);
}
J'ai besoin qu'il ne copie pas le code d'un autre constructeur...