示例#1
0
        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};
        }
示例#2
0
        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 });
        }