System.Windows.DependencyProperty.GetHashCode C# (CSharp) Method

GetHashCode() public method

public GetHashCode ( ) : int
return int
        public override int GetHashCode()
        {
            return Name.GetHashCode() ^ PropertyType.GetHashCode() ^ OwnerType.GetHashCode();
        }

Usage Example

コード例 #1
0
        // We don't expect to need this function. [Required when overriding Equals()]
        // Write a good HashCode anyway (if not a fast one)
        override public int GetHashCode()
        {
            int        hashCode;
            Expression ex = (Expression)_wrEX.Target;

            hashCode = (null == ex) ? 0 : ex.GetHashCode();

            if (null != _wrDO)
            {
                DependencyObject DO = (DependencyObject)_wrDO.Target;
                hashCode += (null == DO) ? 0 : DO.GetHashCode();
            }

            hashCode += (null == _DP) ? 0 : _DP.GetHashCode();
            return(hashCode);
        }
All Usage Examples Of System.Windows.DependencyProperty::GetHashCode