Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: RT.Util.ExtensionMethods.XmlLinqExtensions

Summary

Provides extension methods on the classes belonging to the LINQ XML API (XElement, XContainer, and XAttribute).

Static methods

T
ValueOrDefault<T>(this XElement element, XName name, T defaultValue)
Returns the value of this element, converted to type T. If the element does not exist returns the default value. If the element's value cannot be converted, throws an exception.