示例#1
0
 protected void SetAttributeValue <T>(XName name, T?value) where T : struct
 {
     Element.SetAttributeValue(name, AttributeParser <T> .GetString(value));
 }
示例#2
0
 protected T?GetAttributeValue <T>(XName name) where T : struct
 {
     return(AttributeParser <T> .GetValue(Element.Attribute(name)?.Value));
 }