Solvberget.Domain.DTO.UserInfo.GetXmlValue C# (CSharp) Method

GetXmlValue() private static method

private static GetXmlValue ( System.Xml.Linq.XElement node, string tag ) : string
node System.Xml.Linq.XElement
tag string
return string
        private static string GetXmlValue(XElement node, string tag)
        {
            var xElement = node.DescendantsAndSelf(tag).FirstOrDefault();
            return xElement == null ? string.Empty : xElement.Value;
        }