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