public bool Equals(CachedElement <T> other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Element.Equals(other.Element)); }
private bool ElementIsOld(CachedElement <T> cachedElement) { return(_timerProvider.Now - cachedElement.CachingTime > _timeout); }