Bari.Core.Build.BuildContext.GetAllResultsIn C# (CSharp) Method

GetAllResultsIn() public method

Gets all the result files under the given subdirectory of target root
public GetAllResultsIn ( TargetRelativePath targetDir ) : IEnumerable
targetDir TargetRelativePath Subdirectory of target
return IEnumerable
        public IEnumerable<TargetRelativePath> GetAllResultsIn(TargetRelativePath targetDir)
        {
            var prefix = (string)targetDir;
            if (prefix[prefix.Length - 1] != Path.DirectorySeparatorChar)
                prefix += Path.DirectorySeparatorChar;

            return partialResults.Values.SelectMany(ps => ps.Where(p => ((string)p).StartsWith(prefix)));
        }