GetHashCode() public method

public GetHashCode ( ) : int
return int
        // 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);
        }
Example #2
0
 public override int GetHashCode()
 {
     return(target.GetHashCode() ^ property.GetHashCode());
 }