Re:Things I Learned from a Job Hunt for a Senior Engineering...
by logfromblammo on Tuesday April 24, 2018 @02:59PM
(#16915554)
In C#, the string object has some convenience in it:
Or if you want to solve two problems:
And if you want to be clever and snarky:
[ Parent
| on HN ]
Re:Things I Learned from a Job Hunt for a Senior Engineering...
by taco_emoji on Tuesday April 24, 2018 @04:12PM
(#16916110)
The Count and Contains methods are not on string, they're both extension methods on IEnumerable<T>, which string gets for free by implementing IEnumerable<char>.