コード例 #1
0
        /// <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));
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 /// <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);
 }