public bool Equals(MethodReference x, MethodReference y)
 {
     if (!x.MatchMethodOnly(y))
     {
         return(false);
     }
     return(TypeRefEqComparerInstance.Equals(x.DeclaringType, y.DeclaringType));
 }
 public int GetHashCode(MethodReference obj)
 {
     return(obj.Name.GetHashCode() ^ TypeRefEqComparerInstance.GetHashCode(obj.DeclaringType));
 }