I want to add a range to the list but within the same line as initializing it, I am also just doing a normal add to the list within the same line.
Previously was:
List<Type> dto = new List<Type>();
dto.Add(sequence1);
dto.AddRange(sequence2); //sequence2 is also a list
What I currently have:
List<Type> dto = new List<Type> {sequence1};
dto.AddRange(sequence2);
I want to be able to perform the AddRange in the same line, is this possible?