/// <summary> /// The is namespace attribute. /// </summary> /// <param name="attribute"> /// The attribute. /// </param> /// <returns> /// The <see cref="bool"/>. /// </returns> public static bool IsNamespaceAttribute(this XAttribute attribute) { return((string.Compare(attribute.Name.NamespaceName, XNamespace.Xmlns.NamespaceName, StringComparison.Ordinal) == 0) || attribute.IsDefaultNamespaceAttribute()); }