コード例 #1
0
        public IEnumerable <HttpCloneOptimizationReplace> AllItems()
        {
            List <HttpCloneOptimizationReplace> items = new List <HttpCloneOptimizationReplace>();

            if (_remove != null)
            {
                HttpCloneOptimizationReplace remove = new HttpCloneOptimizationReplace();
                remove.ReplaceItem = _remove.ReplaceItem;
                items.Add(remove);
            }
            if (_replace != null)
            {
                items.AddRange(_replace);
            }
            return(items);
        }
コード例 #2
0
 public IEnumerable<HttpCloneOptimizationReplace> AllItems()
 {
     List<HttpCloneOptimizationReplace> items = new List<HttpCloneOptimizationReplace>();
     if (_remove != null)
     {
         HttpCloneOptimizationReplace remove = new HttpCloneOptimizationReplace();
         remove.ReplaceItem = _remove.ReplaceItem;
         items.Add(remove);
     }
     if (_replace != null)
         items.AddRange(_replace);
     return items;
 }