I have moved from C to C#. I have a function which accepts an array. I want to pass one dimension of a Two Dimensional array to this function.
C Code would be:-
A primitive way would be:
var dimNumber = 1; int[] oneDimension = new int[50]; for(var i=0; i<50; i++) { oneDimension[i] = Client_ID[dimNumber][i]; } array_processing ( ref oneDimension);
I would suggest using Lambda expressions like in the way 5 of zmbq's answer.