i have two numbers 1,2 in one array.Now i want to generate all the possible combinations of arrays(of size=5) like
1,2,0,0,0 || 2,1,0,0,0 || 1,0,2,0,0 . . . . .
I tried to write a recursive function but its not working
Now I want to solve this using LINQ because the code will be considerably small.
Please help me