Esempio n. 1
0
        /**
         * {@inheritDoc}
         */
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            if (GetType() != obj.GetType())
            {
                return(false);
            }
            if (!base.Equals(obj))
            {
                return(false);
            }
            NamedTuple other = (NamedTuple)obj;

            if (_thisHashcode != other._thisHashcode)
            {
                return(false);
            }
            return(true);
        }
Esempio n. 2
0
 /**
  * Constructs a new {@code Entry}
  *
  * @param key
  * @param value
  * @param hash
  */
 public Entry(NamedTuple parent, string key, object value, int hash)
 {
     Key   = key;
     Value = value;
     _hash = parent.HashIndex(key);
 }