Example #1
0
        /// <summary>
        /// Returns true if <paramref name="o"/> 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));
        }
Example #2
0
 /// <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));
 }