Lucene.Net.Search.SortField.GetHashCode C# (CSharp) Méthode

GetHashCode() public méthode

Returns true if o is equal to this. If a FieldComparatorSource or {@link FieldCache.Parser} was provided, it must properly implement hashCode (unless a singleton is always used).
public GetHashCode ( ) : int
Résultat int
        public override int GetHashCode()
        {
            int hash = (int)(type.GetHashCode() ^ 0x346565dd + reverse.GetHashCode() ^ 0xaf5998bb);
            if (field != null)
            {
                hash += (int)(field.GetHashCode() ^ 0xff5685dd);
            }
            if (comparatorSource != null)
            {
                hash += comparatorSource.GetHashCode();
            }
            return hash;
        }