如果你想生成一个数字序列,你将会获得一个19位长的序列。
下面的方法会把GUID转换为Int64的数字序列。
 private static long GenerateIntID()
 {
            byte[] buffer = Guid.NewGuid().ToByteArray();
            return BitConverter.ToInt64(buffer, 0);
  }

 

guid转int

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-11-02
  • 2021-07-22
  • 2022-12-23
猜你喜欢
  • 2022-03-03
  • 2022-02-11
  • 2021-05-22
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案