private GetAttributeValue ( System.Xml.Linq.XElement element, string attrName ) : string | ||
element | System.Xml.Linq.XElement | |
attrName | string | |
return | string |
private string GetAttributeValue(XElement element, string attrName)
{
var attr = element.Attribute(attrName);
return attr != null ? attr.Value : null;
}