Skip to content

ForXmlHelper.Attr method

Gets the attribute value from an XElement.

public static string? Attr(this XElement e, string attr)
parameter description
e The XElement.
attr The attribute name.

Return Value

The attribute value, or null if not found.

See Also