LayoutFarm.WebDom.CssSimpleElementSelector.IsSameNameAndType C# (CSharp) Method

IsSameNameAndType() public method

public IsSameNameAndType ( CssElementSelector anotherSelector ) : bool
anotherSelector CssElementSelector
return bool
        public override bool IsSameNameAndType(CssElementSelector anotherSelector)
        {
            if (anotherSelector == null)
            {
                return false;
            }
            if (anotherSelector == this)
            {
                return true;
            }
            //------------------------------
            CssSimpleElementSelector another = anotherSelector as CssSimpleElementSelector;
            return another != null && (another.Name == this.Name) &&
                (another.selectorType == this.selectorType);
        }
        public static bool IsCompatible(CssSimpleElementSelector sel1, CssSimpleElementSelector sel2)