public override bool Equals(object obj)
 {
     if (obj is InvalidParameterInfo info)
     {
         //checking canonical name and kind is enough for invalid parameters to be the same
         return(Canonical.Equals(info.Canonical, StringComparison.OrdinalIgnoreCase) && ErrorKind == info.ErrorKind);
     }
     return(base.Equals(obj));
 }
 public bool Equals(InvalidParameterInfo other)
 {
     return(Canonical.Equals(other.Canonical, StringComparison.OrdinalIgnoreCase) && ErrorKind == other.ErrorKind);
 }