Пример #1
0
 /// <summary>
 /// Create an empty list
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static List <T> EmptyList <T>() => EnumerableFactory.OfList <T>();
Пример #2
0
 /// <summary>
 /// Create list
 /// </summary>
 /// <param name="listParams"></param>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static List <T> Create <T>(params IEnumerable <T>[] listParams) => EnumerableFactory.OfList(listParams);
Пример #3
0
 /// <summary>
 /// Create readonly list
 /// </summary>
 /// <param name="listParams"></param>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public static IReadOnlyList <T> OfList <T>(params IEnumerable <T>[] listParams) => EnumerableFactory.OfList(listParams);