public static Pinyin Convert2Tone5(Pinyin p) { var index = (int)Enum.Parse(typeof(PYName), p.ToString()); var tone5 = Tone2tone5[index]; return(Pinyin.PinyinTable[(int)tone5]); }