Assuming I have a class like this:
class Base { }
class A : Base { }
class B : Base { }
class C : Base { }
And objects like this:
A a = new A();
List<B> bs = new List<B>();
List<C> cs = new List<C>();
Is it possible to create a new list containing references to the other lists (So that changes are reflected in the original items? Such as:
void modifyContents(List<Base> allItems) {
//modify them somehow where allItems contains a, bs and cs
}