/// <summary> /// 转换简体中文和繁体中文字符。 /// </summary> /// <param name="ch"></param> /// <param name="direction"></param> /// <returns></returns> public static char Convert(char ch, ChineseConversionDirection direction) { ChineseChar result; return(ChineseChar.TryParse(ch, out result) ? (direction == ChineseConversionDirection.SimplifiedToTraditional) ? result.Traditional : result.Simplified : ch); }