public override bool Equals(Object obj)
{
if (this == obj)
return true;
if (obj == null)
return false;
if (this.GetType() != obj.GetType())
return false;
BoostingQuery other = (BoostingQuery)obj;
if (BitConverter.ToInt32(BitConverter.GetBytes(boost),0) != BitConverter.ToInt32(BitConverter.GetBytes(other.boost),0) )
return false;
if (context == null)
{
if (other.context != null)
return false;
}
else if (!context.Equals(other.context))
return false;
if (match == null)
{
if (other.match != null)
return false;
}
else if (!match.Equals(other.match))
return false;
return true;
}