Is there an easy/simple ways to use sort of parallel arrays?. I've got 2 arrays:
public class ApiArray
{
//.. Arrays were filled (E.g. Id:{1,2,7,8,10}, Names:{name1, name2, name3, name4, name5}
public Array Id { get; set; }
public Array Names { get; set; }
}
//..
foreach (var N in ApiArray.Names)
{
listBox1.Items.Add(N);
}
The selected Names array has to be linked to the same position in the Id array. Id array doesnt contains sequent numbers.
When the Name is selected the Id has to be used.
Thank your for suggestions.