Extension Methods from dave thieben
-
IfNotNull<T, TResult>
if the object this method is called on is not null, runs the given function and returns the value. if the object is null, returns default(TResult).
-
GetValue
Simply returns the value property from an XmlNode whether it's null or not. Simplifies using XmlDocuments.
-
IfIs<T>
optionally executes an Action if the object is of the given type.