I am using C#, WinForms, In VS2010 Pro and trying to run one line of code:
var count = before.Count(c => c == '/');
which I got from here: How would you count occurrences of a string within a string?
but it doesn't recognize Count method on Strings, so it gives error and doesn't compile. How should I fix it? what is missing?