Esempio n. 1
0
        public override int GetHashCode()
        {
            // Note: The infrequent collision where changing the order of args gives the same hash value is OK.
            int hash = _name.GetHashCode();

            for (int i = 0; i < _args.Length; ++i)
            {
                hash ^= YP.getValue(_args[i]).GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
 public override int GetHashCode()
 {
     // Note: The infrequent collision where changing the order of args gives the same hash value is OK.
     return(_name.GetHashCode() ^ YP.getValue(_arg1).GetHashCode()
            ^ YP.getValue(_arg2).GetHashCode());
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return(_name.GetHashCode() ^ YP.getValue(_arg1).GetHashCode());
 }