using System.Linq; using System.Collections.Generic; using csharp.StrategyPatternExample; namespace csharp.StrategyPatternExample { public class GildedRoseStrategyPatternExample : IGildedRoseApp { private IList Items; public GildedRoseStrategyPatternExample(IList Items) { this.Items = Items.Select(i => new ItemWrapperContext(i)).ToList(); } public void UpdateQuality() { for (var i = 0; i < Items.Count; i++) { Items[i].UpdateQuality(); } } } }