public void AppActionList(AppBase app, AppActionsTemplate template) { AppActionCollection appActions = app.AppActions; int j = 0; foreach (AppAction appAction in appActions) { template(j++, appAction); } }