public static int GetStringStrokeNumber(string str) { int count = 0; char[] c = str.ToCharArray(); foreach (char temp in c) { count += ChineseChar.GetStrokeNumber(temp); } return(count); }