/// <summary>
 /// Gets hash code for property descriptor</summary>
 /// <returns>Hash code</returns>
 /// <remarks>Implements GetHashCode() for organizing descriptors in grid controls</remarks>
 public override int GetHashCode()
 {
     // We don't really want to use the base method because it assumes that this
     //  property descriptor is modifying a DomNode attribute on our root DomNode
     //  and so it does not take into account the name or category of the property.
     return(PropertyUtils.GetPropertyDescriptorHash(this));
 }
Пример #2
0
        private bool IsSameHashCode(System.ComponentModel.PropertyDescriptor p1, System.ComponentModel.PropertyDescriptor p2)
        {
            int hash1 = PropertyUtils.GetPropertyDescriptorHash(p1);
            int hash2 = PropertyUtils.GetPropertyDescriptorHash(p2);

            return(hash1 == hash2);
        }