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