TestStack.ConventionTests.ConventionData.ProjectReferences.AllProjectReferences C# (CSharp) Méthode

AllProjectReferences() static private méthode

static private AllProjectReferences ( System.Xml.Linq.XDocument projDefinition ) : IEnumerable
projDefinition System.Xml.Linq.XDocument
Résultat IEnumerable
        static IEnumerable<string> AllProjectReferences(XDocument projDefinition)
        {
            XNamespace msbuild = "http://schemas.microsoft.com/developer/msbuild/2003";
            var references = projDefinition
                .Element(msbuild + "Project")
                .Elements(msbuild + "ItemGroup")
                .Elements(msbuild + "Reference")
                .Elements(msbuild + "HintPath")
                .Select(refElem => refElem.Value);
            return references;
        }
    }