NuGet.Manifest.GetMetadataElement C# (CSharp) Method

GetMetadataElement() private static method

private static GetMetadataElement ( System.Xml.Linq.XDocument document ) : System.Xml.Linq.XElement
document System.Xml.Linq.XDocument
return System.Xml.Linq.XElement
        private static XElement GetMetadataElement(XDocument document)
        {
            // Get the metadata element this way so that we don't have to worry about the schema version
            XName metadataName = XName.Get("metadata", document.Root.Name.Namespace.NamespaceName);

            return document.Root.Element(metadataName);
        }