Пример #1
0
        public override int GetHashCode()
        {
            int hash = 0x3568932;

            hash ^= AETitle.GetHashCode();
            hash ^= Name.GetHashCode();
            hash ^= Description.GetHashCode();
            hash ^= Location.GetHashCode();
            return(hash);
        }
Пример #2
0
 public bool CheckAETitle(string calledAETitle)
 {
     if (!EnableAETitleChecking)
     {
         return(true);
     }
     if (calledAETitle == null)
     {
         return(false);
     }
     return(calledAETitle.Trim() == AETitle.Trim());
 }
Пример #3
0
        public override int GetHashCode()
        {
            int hash = 0x5467912;

            if (AETitle != null)
            {
                hash ^= AETitle.GetHashCode();
            }
            if (HostName != null)
            {
                hash ^= HostName.GetHashCode();
            }

            hash ^= Port.GetHashCode();
            return(hash);
        }