I am fairly new to C# coding and have started delving into lists a lot lately.
I have 2 binding lists that are somewhat related.
I have two lists that contain completely different pieces of data. Is it possible to combine these 2 lists into one list ? Is the best way to go about this to pass the 2 binding lists into a class and then combine them and return another class ?
Thanks for any and all help.
listHouse= new BindingList<MyObject>();
listHouse.Add(new MyObject(1, "Outdoor"));
listHouse.Add(new MyObject(2, "Hardware"));
listHouse.Add(new MyObject(3, "Tools"));
listHouse.Add(new MyObject(4, "Books"));
listHouse.Add(new MyObject(5, "Appliances"));
listColors= new BindingList<MyOtherObject>();
listColors.Add(new MyObject(11, "Blue","UPC2222"));
listColors.Add(new MyObject(22, "Green", "UPC3432"));
listColors.Add(new MyObject(33, "Pink","UPC3444"));
listColors.Add(new MyObject(44, "Yellow","UPC7777"));