Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Ip != null ? Ip.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Port != null ? Port.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Host != null ? Host.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SourceType != null ? SourceType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SourceStart.GetHashCode();
         hashCode = (hashCode * 397) ^ SourceEnd.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 2
0
 protected bool Equals(NodeBase other)
 {
     return(string.Equals(Ip, other.Ip) && string.Equals(Port, other.Port) && string.Equals(Host, other.Host) && string.Equals(SourceType, other.SourceType) && SourceStart.Equals(other.SourceStart) && SourceEnd.Equals(other.SourceEnd));
 }