这是我的课:
public class ContainerData
{
private List<Dictionary<Contour<Point> , int>> ratioContoursCollection = new List<Dictionary<Contour<Point>,int>>();
public List<Dictionary<Contour<Point>, int>> ratioContoursCollcProperty
{
get { return ratioContoursCollection; }
set { ratioContoursCollection = value; }
}
}
我创建了一个类的实例:
ContainerData _CD = new ContainerData();
我需要用for 循环中_CD
的和轮廓填充:newTriangleRation
for(i = 0; i < 5; i++)
{
double newTriangleRatio = someFunc();
Contour<Point> contours = someFunc2();
// assignment have to be here!!!
}
知道如何实施吗?