Quick and simple: –

var count = mrString.Count(x => x == '$')

 

 


Discover more from

Subscribe to get the latest posts sent to your email.

Leave a comment

Trending