/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here _blank = new Texture2D(GraphicsDevice, 1, 1); elementsList = new List <IElement>(); elements = new ElementsList <IElement>(elementsList); efac = new ElementsFactory(); string msg; Action tmp = () => msg = "hello"; var action = new Action(tmp); IElement aButton = efac.Create(1, _blank, action); IElement aButton2 = efac.Create(2, _blank, action); elementsList.Add(aButton); elementsList.Add(aButton2); base.Initialize(); }
public MakeSafe(TraditionalIterator <T> iterator) { this.iterator = iterator; }
public Map(TraditionalIterator <T> collection, Func <T, U> f) { this.decoratedCollection = collection; this.f = f; }