0
我有迷你班,我保存在列表中。现在我必须删除列表中的行,其中numRect = -1。我该怎么做?从列表中删除一定的值
double pointX, pointY;
int numRect;
public PointsSelectedSources(double x, double y, int numRect)
{
pointX = x;
pointY = y;
this.numRect = numRect;
}
public int NumRect
{
get
{
return numRect;
}
set
{
numRect = value;
}
}
我会避免命名类值和constructor属性都numRect,即使代码明白你的意思,它的坏的形式,并就更难别人看你的码。 – Andrew