예제 #1
0
 /// <summary>
 /// Overriden GetHashCode method
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(_name.GetHashCode() ^
            _value.GetHashCode() ^
            _type.GetHashCode() ^
            _location.GetHashCode() ^
            _isTracked.GetHashCode());
 }
예제 #2
0
        public override int GetHashCode()
        {
            int hashCode = 786331036;

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Text);

            hashCode = hashCode * -1521134295 + RequestContact.GetHashCode();
            hashCode = hashCode * -1521134295 + RequestLocation.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <KeyboardButtonPollType?> .Default.GetHashCode(RequestPoll);

            hashCode = hashCode * -1521134295 + EqualityComparer <WebAppInfo?> .Default.GetHashCode(WebApp);

            return(hashCode);
        }