/// <summary>
        /// 获得32位字符长度的ID
        /// </summary>
        /// <param name="information">获得32位字符长度的ID</param>
        public static string getGuid()
        {
            Guid guid = Guid.NewGuid();
            return guid.ToString().Replace("-", "").ToUpper();
 
}

其中,Replace是替换掉其中的“-”,ToUpper()是返回大写,.ToLower()是返回小写。

相关文章:

  • 2021-08-23
  • 2021-12-04
  • 2021-09-06
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2021-06-01
  • 2021-09-21
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案