All types
|
All members
RT.Util
RT.KitchenSink.Drawing
RT.KitchenSink.Fonts
RT.Util
RT.Util.Controls
RT.Util.Drawing
RT.Util.ExtensionMethods
Windows
Forms
Extensions
Xml
Linq
Extensions
ValueOrDefault
<>(
element
,
name
,
default
Value
)
RT.Util.Forms
PropellerApi
PuzzleSolvers
RT.ArithmeticCoding
RT.BigInteger
RT.CommandLine
RT.Coordinates
RT.Dijkstra
RT.Generex
RT.Json
RT.Lingo
RT.Lingo.Base
RT.NUnitDirect
RT.PostBuild
RT.SelfService
RT.Serialization
RT.Serialization.Binary
RT.Serialization.Json
RT.Serialization.Xml
RT.Servers
RT.TagSoup
RT.Util.Core
RT.Util.Legacy
Legend
Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field
Static class:
RT.Util.ExtensionMethods.
XmlLinqExtensions
Assembly:
RT.Util, Version=1.0.0.9999, Culture=neutral, PublicKeyToken=null
Namespace:
RT.Util.ExtensionMethods
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.