// Constructors public CacheKey(FieldInfo referencingField, int?itemCountLimit) { this.ReferencingField = referencingField; this.ItemCountLimit = itemCountLimit; unchecked { cachedHashCode = (ReferencingField.GetHashCode() * 397) ^ (ItemCountLimit.HasValue ? 1 : 0); } }
/// <inheritdoc/> public override int GetHashCode() { return(field.GetHashCode()); }