C# Class Ninject.Extensions.Xml.Extensions.ExtensionsForXElement

Extension methods for XElement
显示文件 Open project: ninject/Ninject.Extensions.Xml

Public Methods

Method Description
RequiredAttribute ( this element, System.Xml.Linq.XName name ) : System.Xml.Linq.XAttribute

Gets a required attribute from an XElement.

Method Details

RequiredAttribute() public static method

Gets a required attribute from an XElement.
A required attribute is missing.
public static RequiredAttribute ( this element, System.Xml.Linq.XName name ) : System.Xml.Linq.XAttribute
element this The element.
name System.Xml.Linq.XName The name of the attribute.
return System.Xml.Linq.XAttribute