1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
8
namespace ICSharpCode.PackageManagement
10
public class PackageFilesForOperations
12
IEnumerable<PackageOperation> operations;
14
public PackageFilesForOperations(IEnumerable<PackageOperation> operations)
16
this.operations = operations;
19
public bool HasAnyPackageScripts()
21
foreach (PackageFiles files in GetPackageFilesForEachOperation()) {
22
if (files.HasAnyPackageScripts()) {
29
IEnumerable<PackageFiles> GetPackageFilesForEachOperation()
31
foreach (PackageOperation operation in operations) {
32
yield return new PackageFiles(operation.Package);