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));
            }
示例#2
0
 private bool Equals(CacheKey other)
 {
     return(ValueTypes.SequenceEqual(other.ValueTypes) &&
            (IndexMap?.SequenceEqual(other.IndexMap) ?? true));
 }