我需要制作升序的通用列表。这是我的通用类型:
public class ContainerData
{
private Point pnt;
private Size size;
private Double Area;
private Contour<Point> contour;
public ContainerData()
{ }
public ContainerData(ContainerData containerData)
{
this.pnt=containerData.pnt;
this.size=containerData.size;
this.Area=containerData.Area;
this.contour = containerData.contour;
}
public Point pointProperty
{
get
{return pnt;}
set
{pnt = value;}
}
public Size sizeProperty
{
get
{return size;}
set
{size = value;}
}
public Double AreaProperty
{
get
{return Area;}
set
{Area = value;}
}
public Contour<Point> ContourProperty
{
get
{return contour;}
set
{ contour = value; }
}
}
升序排序必须在第 th Point 类型的 X 坐标值下进行。
这是应该排序的类成员:
private List<ContainerData> dataOfPreviusImage;
知道如何实施吗?
先感谢您。