public static Guid NewGuid()
 {
     return(CombGuidGenerator.NewGuid(Guid.NewGuid(), DateTime.UtcNow));
 }
        public static DateTime ExtractDateTimeFromCombGuid(Guid guid)
        {
            long ticksFromGuid = CombGuidGenerator.GetTicksFromGuid(guid);

            return(new DateTime(ticksFromGuid, DateTimeKind.Utc));
        }
        public static bool IsCombGuid(Guid guid)
        {
            long ticksFromGuid = CombGuidGenerator.GetTicksFromGuid(guid);

            return(DateTime.MinValue.Ticks <= ticksFromGuid && ticksFromGuid <= DateTime.MaxValue.Ticks);
        }
 public static Guid NewGuid(DateTime dateTime)
 {
     return(CombGuidGenerator.NewGuid(Guid.NewGuid(), dateTime));
 }