Beispiel #1
0
 public override bool Equals(ZeroC.Ice.Endpoint?other)
 {
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (other is Endpoint testEndpoint)
     {
         return(_endpoint.Equals(testEndpoint._endpoint));
     }
     else
     {
         return(false);
     }
 }
Beispiel #2
0
 public override bool Equals(Endpoint?other)
 {
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     if (other is WSEndpoint wsEndpoint)
     {
         if (Type != wsEndpoint.Type)
         {
             return(false);
         }
         if (Resource != wsEndpoint.Resource)
         {
             return(false);
         }
         return(_delegate.Equals(wsEndpoint._delegate));
     }
     else
     {
         return(false);
     }
 }