NuGet.SharedPackageRepository.FindEntry C# (CSharp) 메소드

FindEntry() 개인적인 메소드

private FindEntry ( System.Xml.Linq.XDocument document, string path ) : System.Xml.Linq.XElement
document System.Xml.Linq.XDocument
path string
리턴 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();
        }