I need to count the number of occurrences of a sub-string within a string in C#. Can you please let me know how to do it?
I'm new to this forum and not sure of the posting rules, but i would guess I can't post a full answer. Check out the IndexOf method. theString.IndexOf("string",startPoint);
It looks like you're new here. If you want to get involved, click one of these buttons!