public IEnumerable<AssetFile> FindFiles(string name) { var combination = _combinations.FindCombination(name); if (combination != null) { return combination.Files; } var assetFile = _pipeline.Find(name); if (assetFile == null) { throw new ArgumentOutOfRangeException("No combination or asset file exists with the name " + name); } return new[]{assetFile}; }
public IEnumerable <AssetFile> FindFiles(string name) { var combination = _combinations.FindCombination(name); if (combination != null) { return(combination.Files); } var assetFile = _pipeline.Find(name); if (assetFile == null) { return(Enumerable.Empty <AssetFile>()); } return(new[] { assetFile }); }