public bool Equals(IXPathNode other) { XPathAdapter adapter = other as XPathAdapter; if (object.ReferenceEquals(adapter, null)) { return(false); } if (object.ReferenceEquals(adapter, this)) { return(true); } return(_owner.UIAutomationElement.Equals(adapter._owner.UIAutomationElement)); }
public XPathAttributeAdapter(XPathAdapter owner, PropertyDescriptor prop) { _owner = owner; _prop = prop; }