Here is my class:
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; }
}
}
I created the instance of a class:
ContainerData _CD = new ContainerData();
I need to fill the _CD with the newTriangleRation and contours in for loop:
for(i = 0; i < 5; i++)
{
double newTriangleRatio = someFunc();
Contour<Point> contours = someFunc2();
// assignment have to be here!!!
}
Any idea how can I implement it?
1 Answer