示例#1
0
        /// <summary>
        /// Gets the hash code for an object
        /// </summary>
        /// <returns>The hash code</returns>
        public override int GetHashCode()
        {
            int ret = (int)(DeviceInstance.GetHashCode() & 0xFFFF0000);

            ret |= ObjectIdentifier.GetHashCode();
            return(ret);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Device.Length != 0)
            {
                hash ^= Device.GetHashCode();
            }
            if (deviceInstance_ != null)
            {
                hash ^= DeviceInstance.GetHashCode();
            }
            if (Kind.Length != 0)
            {
                hash ^= Kind.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }