/// <summary> /// Returns true if <code>o</code> is equal to this. </summary> public override bool Equals(object o) { var other = o as FunctionQuery; if (other == null) { return(false); } return(Boost == other.Boost && func.Equals(other.func)); }
/// <summary> /// Returns true if <paramref name="o"/> is equal to this. /// </summary> public override bool Equals(object o) { if (o is null) { return(false); } if (!(o is FunctionQuery other)) { return(false); } return(Boost == other.Boost && func.Equals(other.func)); }