GoXam for WPF v3
Read Method
Northwoods.GoXam.Model Namespace > XHelper Class : Read Method
This generic method produces a property value from an XElement's attribute value, using a conversion function to convert the string to the expected type, and returning a default value if the conversion fails.
Overload List
OverloadDescription
This generic method produces a property value from an XElement's attribute value, using a conversion function to convert the string to the expected type, and returning a default value if the conversion fails.  
Consume an XAttribute on an XElement, converting the attribute's value to a String, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Boolean, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to an Int32, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Guid, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Double, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Point, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Size, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Rect, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Thickness, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a DateTime, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a TimeSpan, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Decimal, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Thickness, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Thickness, or return the default value if the attribute is not present or if there is a conversion exception.  
Consume an XAttribute on an XElement, converting the attribute's value to a Thickness, or return the default value if the attribute is not present or if there is a conversion exception.  
See Also

Reference

XHelper Class
XHelper Members