Can some one pls tell me what this line of code is(c#):
I am trying to count spaces in the string that's how came across this code line. I understand the conversion to char array part ,but the arguments part I don't understand how is it done what is x and the equal to greater then signs
var count = user_input.ToCharArray().Count(x => x == ' ');
and also if there's any easier method to count then pls broaden my horizon.