public bool IsExpired() { // UTC check is because license may be issued with an UTC interval, to avoid // silly errors we relax validity for these few hours. return(!Validity.Contains(DateTime.Now) && !Validity.Contains(DateTime.UtcNow)); }