Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public XPathAttributeAdapter(XPathAdapter owner, PropertyDescriptor prop)
 {
     _owner = owner;
     _prop  = prop;
 }