J
jleslie48
ok, so I have a list and I use it fine here is its declaration:
public List<faPair> points_list_pc = new List<faPair>(); /* points
list as a percent of range */
it works so well I now need 5 of them but rather than have 5 variables
for example
public List<faPair> points_list_pc0 = new List<faPair>(); /* points
list as a percent of range */
public List<faPair> points_list_pc1 = new List<faPair>(); /* points
list as a percent of range */
public List<faPair> points_list_pc2 = new List<faPair>(); /* points
list as a percent of range */
public List<faPair> points_list_pc3 = new List<faPair>(); /* points
list as a percent of range */
public List<faPair> points_list_pc4 = new List<faPair>(); /* points
list as a percent of range */
I want to have an indexed array of the object. something like this
although this is the wrong syntax;
public List<faPair> points_list_pc[5] = new List<faPair>(); /* points
list as a percent of range */
so where I have references to something like:
points_list_pc.Clear();
will become
points_list_pc[0].Clear();
can something like this be done?
public List<faPair> points_list_pc = new List<faPair>(); /* points
list as a percent of range */
it works so well I now need 5 of them but rather than have 5 variables
for example
public List<faPair> points_list_pc0 = new List<faPair>(); /* points
list as a percent of range */
public List<faPair> points_list_pc1 = new List<faPair>(); /* points
list as a percent of range */
public List<faPair> points_list_pc2 = new List<faPair>(); /* points
list as a percent of range */
public List<faPair> points_list_pc3 = new List<faPair>(); /* points
list as a percent of range */
public List<faPair> points_list_pc4 = new List<faPair>(); /* points
list as a percent of range */
I want to have an indexed array of the object. something like this
although this is the wrong syntax;
public List<faPair> points_list_pc[5] = new List<faPair>(); /* points
list as a percent of range */
so where I have references to something like:
points_list_pc.Clear();
will become
points_list_pc[0].Clear();
can something like this be done?