Parameters
- n
- the attribute name, often the same as the data's property name
- e
- the
XElement
holding the expected attribute - defval
- the default value for the property
Type Parameters
- T
- this must be an
Enum
type
Return Value
the attribute value converted to the T, or the default value