NuGet.Commands.ProjectFactory.GetNuspecPaths C# (CSharp) Method

GetNuspecPaths() private method

private GetNuspecPaths ( ) : IEnumerable
return IEnumerable
        private IEnumerable<string> GetNuspecPaths()
        {
            // Check for a nuspec in the project file
            yield return GetContentOrNone(file => Path.GetExtension(file).Equals(Constants.ManifestExtension, StringComparison.OrdinalIgnoreCase));
            // Check for a nuspec named after the project
            yield return Path.Combine(_project.DirectoryPath, Path.GetFileNameWithoutExtension(_project.FullPath) + Constants.ManifestExtension);
        }