Svg.SvgExtentions.HasNonEmptyCustomAttribute C# (CSharp) Method

HasNonEmptyCustomAttribute() public static method

public static HasNonEmptyCustomAttribute ( this element, string name ) : bool
element this
name string
return bool
        public static bool HasNonEmptyCustomAttribute(this SvgElement element, string name)
        {
        	return element.CustomAttributes.ContainsKey(name) && !string.IsNullOrEmpty(element.CustomAttributes[name]);
        }