Question is absolutely not clair… like this?
private static Dictionary<String, PointPairList> s_PointPairLists = new Dictionary<String, PointPairList>();
private static void BuildPointPairLists(Int32 limit)
{
for (Int32 i = 2; i < limit; ++i)
{
if ((tabl[i].x != null) && (tabl[i].y != null))
{
Double[] x = { 0, tabl[i].y };
Double[] y = { tabl[i].x, 0 };
s_PointPairLists[("ppl" + i.ToString())] = new PointPairList(x, y);
}
}
}
public static PointPairList(Int32 index)
{
String reference = "ppl" + index.ToString();
if (s_PointPairs.Contains(reference))
return s_PointPairs[reference];
return null;
}
solved how can we solve this type? [closed]