-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Xml_XNodeExtensions
Andrew Koryavchenko edited this page Jun 17, 2018
·
11 revisions
Extensions for XLinq.
System.Object
CodeJam.Xml.XNodeExtensions
Namespace: CodeJam.Xml
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static class XNodeExtensionsVB
<ExtensionAttribute>
Public NotInheritable Class XNodeExtensionsF#
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type XNodeExtensions = class endThe XNodeExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
![]()
|
AttributeValueOrDefault(XElement, XName, String) | Returns string value of optional attribute. |
![]()
|
AttributeValueOrDefault(T)(XElement, XName, Func(String, T), T) | Returns value of optional attribute. |
![]()
|
ElementAltValueOrDefault(T) | Returns value of optional element. |
![]()
|
ElementValueOrDefault(XElement, XName, String) | Returns string value of optional element. |
![]()
|
ElementValueOrDefault(T)(XElement, XName, Func(String, T), T) | Returns value of optional element. |
![]()
|
ElementValueOrDefault(T)(XElement, XName, Func(XElement, T), T) | Returns value of optional element. |
![]()
|
RequiredAttribute | Returns attribute with name name, or throws an exception if attribute does not exists. |
![]()
|
RequiredElement(XElement, XName) | Returns child element with name name, or throws an exception if element does not exists. |
![]()
|
RequiredElement(XElement, XName[]) | Returns child element with one of names in names, or throws an exception if element does not exists. |
![]()
|
RequiredRoot(XDocument) | Returns document root, or throw an exception, if root is null. |
![]()
|
RequiredRoot(XDocument, XName) | Returns document root, or throws an exception, if root is null or has another name. |
