c#中获取GUID

80酷酷网    80kuku.com

  guid

c#获取GUIDusing System;
using System.Collections.Generic;
using System.Text;

namespace TestGetGUID
...{
    class Program
    ...{
        static void Main(string[] args)
        ...{
            CreatGuid();
        }

        private static void CreatGuid()
        ...{
            Console.WriteLine("GUID:" + Guid.NewGuid().ToString());
            Console.ReadLine();
        }
    }
}

分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: