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



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

return Convert.ToString(intValue, toBase); 


其中fromBase为原来的格式 

toBase为将要转换成的格式

相关文章:

  • 2022-02-22
  • 2021-08-28
  • 2021-09-15
  • 2021-12-03
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案