XElementExtensions.GetElementAsBoolean method

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

GetElementAsBoolean(XElement, string)

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

Parameters

element XElement
expression String

Returns

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

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

Type Parameters

T

Parameters

element XElement
expression String
callback Func<T, TResult>

Returns

T

GetElementAsBoolean(XElement, string, IXmlNamespaceResolver)

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

Parameters

element XElement
expression String

Returns

GetElementAsBoolean(XElement, string, IXmlNamespaceResolver, out bool)

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

Parameters

element XElement
expression String
value bool

Returns

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

Extension method
public static T GetElementAsBoolean<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

GetElementAsBoolean(XElement, XName)

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

Parameters

element XElement
name XName

Returns

GetElementAsBoolean(XElement, XName, out bool)

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

Parameters

element XElement
name XName
value bool

Returns

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

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

Type Parameters

T

Parameters

element XElement
name XName
callback Func<T, TResult>

Returns

T