public static HasAttribute ( this element, string name ) : bool | ||
element | this | |
name | string | |
return | bool |
public static bool HasAttribute(this XElement element, string name)
{
return element.Attribute(name) != null;
}