Пример #1
0
        // If Equals() returns true for a pair of objects
        // then GetHashCode() must return the same value for these objects.

        public override int GetHashCode()
        {
            int hashExecutablPath = ExecutablPath == null ? 0 : ExecutablPath.GetHashCode();

            //int hashProductVersion = ProductVersion.GetHashCode();
            return(hashExecutablPath);// ^ hashProductVersion;
        }
Пример #2
0
 public bool Equals(ClientInfo other)
 {
     if (Object.ReferenceEquals(other, null))
     {
         return(false);
     }
     if (Object.ReferenceEquals(this, other))
     {
         return(true);
     }
     return(ExecutablPath.Equals(other.ExecutablPath));
 }