/// <summary> /// /// </summary> /// <param name="selfChar"></param> /// <param name="encoding"></param> /// <param name="eType"></param> /// <returns></returns> public static string GetCorrectCoding(this string selfChar, Encoding encoding, eTrans eType) { int iUnicode = (int)char.Parse(selfChar); return(iUnicode.TransCoding(eType)); }
/// <summary> /// /// </summary> /// <param name="selfChar"></param> /// <param name="encoding"></param> /// <param name="eType"></param> /// <returns></returns> public static string GetCorrectCoding(this string selfChar, Encoding encoding, eTrans eType) { int iUnicode = (int)char.Parse(selfChar); return iUnicode.TransCoding(eType); }
/// <summary> /// /// </summary> /// <param name="iValue"></param> /// <param name="eType"></param> /// <returns></returns> public static string TransCoding(this int iValue, eTrans eType) { return(Convert.ToString(iValue, (int)eType)); }
/// <summary> /// /// </summary> /// <param name="iValue"></param> /// <param name="eType"></param> /// <returns></returns> public static string TransCoding(this int iValue, eTrans eType) { return Convert.ToString(iValue, (int)eType); }