I have a list of integers which will only contain 4 numbers as shown, I need to write a Linq expression which extracts a list of integer Arrays containing only numbers whose addition is equal to "total", sounds simple but here's the tricky part I only want integer Arrays with the smallest count, so if total = 4, then I'd want int[]{4} but I would want int[]{2,2} or int[]{1,3} etc, if total was 5 then I'd want int[]{1,4} , int[]{4,1} , int[]{2,3} , int[]{3,2}, perhaps this could be done with a whole pile of if statements but I'm hoping there's an elegent linq expression out there.
var total = 5;
var numList = new List<int>() { 1, 2, 3, 4 };