2using System.Collections.Generic;
4using System.Reflection;
5using System.Diagnostics;
6using System.Runtime.CompilerServices;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Input;
12using Microsoft.Xna.Framework.Graphics;
20 public class Indexer<TKey, TValue>
22 public Func<TKey, TValue> Get;
23 public Action<TKey, TValue> Set;
25 public TValue
this[TKey key]
28 set => Set(key, value);
31 public Indexer(Func<TKey, TValue>
get, Action<TKey, TValue>
set) => (Get, Set) = (
get,
set);