OpenRA.KeySettings.GetKeys C# (CSharp) Method

GetKeys() static private method

static private GetKeys ( int count, string prefix ) : Hotkey>[].Func
count int
prefix string
return Hotkey>[].Func
        static Func<KeySettings, Hotkey>[] GetKeys(int count, string prefix)
        {
            var keySettings = Expression.Parameter(typeof(KeySettings), "keySettings");
            return Exts.MakeArray(count, i => Expression.Lambda<Func<KeySettings, Hotkey>>(
                Expression.Field(keySettings, "{0}{1:D2}Key".F(prefix, i + 1)), keySettings).Compile());
        }