Tuesday, September 6, 2011

Count number of string occurrences in C#

Code:
int count_li = tempListSource.Split(new string[]{"<li>"},         StringSplitOptions.RemoveEmptyEntries).Length - 1;

0 comments:

Post a Comment