19 Feb 2019 by OriginalGriff
Assuming you can get that to compile - it won't as shown - start with the debugger: put a breakpoint on the line var obj = new List(); and look at the content of param to find out how many objects it contains. At a guess, none. No objects, no foreach body execution, no objects added...