المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to count a character in a string?



C# Programming
06-08-2009, 05:53 PM
Hi
I know it's a simple question but I couldn't find it with searching on google.

string a = "asdasd;asdasdasder;asdgfg;ad;;asdasd";

How can I count the number of ;'s in this string?

Thanks.