摘要:
雪花ID是一个依赖时间戳根据算法生成的一个Int64的数字ID,一般用来做主键或者订单号等。以下是一个用C#写的雪花ID的简单实现方法 using System; using System.Collections.Concurrent; using System.Diagnostics; publi 阅读全文
摘要:
怎么声明。 //泛型类 public class GenericClass<T> where T : ISports { } //泛型接口 public interface GenericInterface<S> { } //泛型委托 public delegate void Do<T>() whe 阅读全文