I am currently working on a C# project where I have a list initialised with a class object, i.e. List<MyClass> myList = new List<MyClass>();
I have added some data to this list, but I need to add more data to it, however, it needs to to the beginning of the array, not at the end, is there a way that I can do this.
Thanks for any help you can provide.
Depends on the type your “MyList” is of! If it’s a simple List, then
will solve your problem!