Example #1
0
        public static void PerformDefaultAction <T>(MenuItemsList <T> operations, T obj)
        {
            Action <T> action = operations.GetDefaultAction(obj);

            if (action != null)
            {
                action(obj);
            }
        }
Example #2
0
 public Action <T> GetDefaultAction(T obj)
 {
     return(List.GetDefaultAction(obj));
 }