Svg.SvgAttributeAttribute.Match C# (CSharp) Method

Match() public method

When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
public Match ( object obj ) : bool
obj object An to compare with this instance of .
return bool
        public override bool Match(object obj)
        {
            SvgAttributeAttribute indicator = obj as SvgAttributeAttribute;

            if (indicator == null)
                return false;

            // Always match if either value is String.Empty (wildcard)
            if (indicator.Name == String.Empty)
                return false;

            return String.Compare(indicator.Name, this.Name) == 0;
        }
SvgAttributeAttribute