Initialize list with both a single object and another list of objects
If the order of the elements is not important, you can use: List<MyObject> newList = new List<MyObject>(listOfObjects) { object1 }; This works by using the List<T> constructor which accepts an IEnumerable<T>, then the collection initializer to add the other items. For example, the following: static void Main() { int test = 2; List<int> test2 = … Read more