Tuesday, May 27, 2014

Record char repeating times in a string

Hello,


Perhaps this will do it for you



int count = s.Count(f => f == '2');
Console.WriteLine(count);





Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.


No comments:

Post a Comment