NuGet.SharedPackageRepository.FindEntry C# (CSharp) Méthode

FindEntry() private méthode

private FindEntry ( System.Xml.Linq.XDocument document, string path ) : System.Xml.Linq.XElement
document System.Xml.Linq.XDocument
path string
Résultat System.Xml.Linq.XElement
        private XElement FindEntry(XDocument document, string path)
        {
            path = NormalizePath(path);

            return (from e in GetRepositoryElements(document)
                    let entryPath = NormalizePath(e.GetOptionalAttributeValue("path"))
                    where path.Equals(entryPath, StringComparison.OrdinalIgnoreCase)
                    select e).FirstOrDefault();
        }