public bool IsInRange(T value) { return(StartValue.CompareTo(value) <= 0 && EndValue.CompareTo(value) >= 0); }