You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Collections.Generic;
-
- namespace SUISS.Cloud.Boomlagoon.JSON
- {
- public static class Extensions
- {
- public static T Pop<T>(this List<T> list)
- {
- T result = list[list.Count - 1];
- list.RemoveAt(list.Count - 1);
- return result;
- }
- }
- }
|