private bool Equals(CacheKey other) { if (!ValueTypes.SequenceEqual(other.ValueTypes)) { return(false); } if (IndexMap == null) { return(other.IndexMap == null); } return(other.IndexMap != null && IndexMap.SequenceEqual(other.IndexMap)); }
private bool Equals(CacheKey other) { return(ValueTypes.SequenceEqual(other.ValueTypes) && (IndexMap?.SequenceEqual(other.IndexMap) ?? true)); }