using System; using System.Diagnostics; using System.Net; using System.Net.Sockets; using System.Threading; /// <summary> /// ID 生成器 /// </summary> public class IDFactory { #region Static Fields /// <summary> /// The factory. /// </su
考虑到sql server以及c#,最多只能用decimal类型,也就是29位的数字,做了下面这个数字型id生成器: class Program { static void Main(string[] args) { ; Timing t = new Timing(); t.Start(); ) UniqueIdGenerator.Next(); t.Stop(); t.Display(""); } } public static class UniqueIdGeneratorHelp