XElementExtensions.GetAttributeAsBoolean method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Xml.Extensions
Assembly Skybrud.Essentials.dll

GetAttributeAsBoolean<T>(XElement, string, Func<T, TResult>)

Extension method
public static T GetAttributeAsBoolean<T>(this XElement element, string expression, Func<T, TResult> callback)

Type Parameters

T

Parameters

element XElement
expression String
callback Func<T, TResult>

Returns

T

GetAttributeAsBoolean(XElement, string, IXmlNamespaceResolver)

Extension method
public static bool GetAttributeAsBoolean(this XElement element, string expression, IXmlNamespaceResolver resolver)

Parameters

element XElement
expression String

Returns

GetAttributeAsBoolean(XElement, string, IXmlNamespaceResolver, out bool)

Extension method
public static bool GetAttributeAsBoolean(this XElement element, string expression, IXmlNamespaceResolver resolver, bool value)

Parameters

element XElement
expression String
value bool

Returns

GetAttributeAsBoolean<T>(XElement, string, IXmlNamespaceResolver, Func<T, TResult>)

Extension method
public static T GetAttributeAsBoolean<T>(this XElement element, string expression, IXmlNamespaceResolver resolver, Func<T, TResult> callback)

Type Parameters

T

Parameters

element XElement
expression String
callback Func<T, TResult>

Returns

T

GetAttributeAsBoolean(XElement, XName)

Extension method
public static bool GetAttributeAsBoolean(this XElement element, XName name)

Parameters

element XElement
name XName

Returns

GetAttributeAsBoolean(XElement, XName, out bool)

Extension method
public static bool GetAttributeAsBoolean(this XElement element, XName name, bool value)

Parameters

element XElement
name XName
value bool

Returns

GetAttributeAsBoolean<T>(XElement, XName, Func<T, TResult>)

Extension method
public static T GetAttributeAsBoolean<T>(this XElement element, XName name, Func<T, TResult> callback)

Type Parameters

T

Parameters

element XElement
name XName
callback Func<T, TResult>

Returns

T

GetAttributeAsBoolean(XElement, string)

Extension method
public static bool GetAttributeAsBoolean(this XElement element, string expression)

Parameters

element XElement
expression String

Returns