public static void DoUpdate <T>(this UpdateList <T> list) where T : IUpdate { list.list.DoUpdate(); list.RemoveImmediate(); }