/// <summary>
/// 返回字符串在字符串中出现的次数
/// </summary>
/// <param name="Char">要检测出现的字符</param>
/// <param name="String">要检测的字符串</param>
/// <returns>出现次数</returns>
public static int GetCharInStringCount(string Char, string String)
{
string str = String.Replace(Char, "");
return (String.Length - str.Length) / Char.Length;
}