Esempio n. 1
0
            // Constructors

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