Class XElementExtensions
Inheritance
XElementExtensions
Assembly: Estrelica.Utility.dll
Syntax
[DoNotObfuscateType]
public static class XElementExtensions
Methods
Declaration
public static XElement AddAttribute(this XElement parent, string name, object value)
Parameters
Returns
Declaration
public static XElement AddElement(this XElement parent, string name)
Parameters
Returns
Declaration
public static XElement AddElement(this XElement parent, string name, object value)
Parameters
Returns
Declaration
public static XAttribute AssertAttribute(this XElement parent, string attributeName, object value = null)
Parameters
Returns
Declaration
public static XElement AssertElement(this XElement parent, string name, object value = null)
Parameters
Returns
Declaration
public static int AttrInt(this XElement node, string attributeName, int defaultIfEmpty = 0)
Parameters
Returns
Declaration
public static string AttrString(this XElement node, string attributeName, string defaultIfEmpty = null)
Parameters
Returns
Declaration
public static XElement ElementByLocalName(this XElement node, string localName)
Parameters
Returns