Aqueduct.Extensions.XmlExtensions.AttributeValue C# (CSharp) Метод

AttributeValue() публичный статический Метод

public static AttributeValue ( this node, string attrName ) : string
node this
attrName string
Результат string
        public static string AttributeValue(this XElement node, string attrName)
        {
            if (node == null)
                return string.Empty;

            var attr = node.Attribute(attrName);
            return attr != null ? attr.Value : string.Empty;
        }