I initialize the array of items in the list as follows:
MyArray[] Arrayitems = SomeOtherList .Select(x => new MyArray[] { ArrayPar1 = x.ListPar1, }).ToArray()
I have a secondary list that I would like to add to the same inline array in the initializer, something like this ():
MyArray[] Arrayitems = SomeOtherList .Select(x => new MyArray[] { ArrayPar1 = x.ListPar1, }).ToArray() .Join( MyArray[] Arrayitems = SomeOtherListNo2 .Select(x => new MyArray[] { ArrayPar1 = x.ListPar1, }).ToArray() );
Is this possible, or will I need to combine everything up to the original select statement?
source share