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

Equals() public méthode

Returns true if o is equal to this. If a FieldComparatorSource or {@link FieldCache.Parser} was provided, it must properly implement equals (unless a singleton is always used).
public Equals ( object o ) : bool
o object
Résultat bool
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return true;
            }
            if (!(o is SortField))
            {
                return false;
            }
            SortField other = (SortField)o;
            return (StringHelper.Equals(other.field, this.field) && other.type == this.type && other.reverse == this.reverse && (other.comparatorSource == null ? this.comparatorSource == null : other.comparatorSource.Equals(this.comparatorSource)));
        }