进制转换

      public string ConvertString(string value, int fromBase, int toBase)
      {

            int intValue = Convert.ToInt32(value, fromBase);

            return Convert.ToString(intValue, toBase);         
      }

posted @ 2009-05-12 12:55  emery  阅读(152)  评论(0编辑  收藏  举报