need help.

solution(int X, vector<int> &A) {
int eq = 0, neq = 0;
for (int i = 0; i < A.size(); ++i)
neq += A[i] != X;
}

How do I write this code in C#.

specially neq += A[I] != X;

Thanks
Topic archived. No new replies allowed.