EnumerableUtils
Assembly: ServiceStack.Common.dll
View Source
Declaration
public static class EnumerableUtils
Methods
FirstOrDefault(IEnumerable)
View Source
Declaration
public static object FirstOrDefault(IEnumerable items)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |
ElementAt(IEnumerable, Int32)
View Source
Declaration
public static object ElementAt(IEnumerable items, int index)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |
System.Int32 | index |
Skip(IEnumerable, Int32)
View Source
Declaration
public static List<object> Skip(IEnumerable items, int count)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |
System.Int32 | count |
SplitOnFirst(IEnumerable, out Object)
View Source
Declaration
public static List<object> SplitOnFirst(IEnumerable items, out object first)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |
System.Object | first |
Take(IEnumerable, Int32)
View Source
Declaration
public static List<object> Take(IEnumerable items, int count)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |
System.Int32 | count |
Count(IEnumerable)
View Source
Declaration
public static int Count(IEnumerable items)
Returns
System.Int32
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |
ToList(IEnumerable)
View Source
Declaration
public static List<object> ToList(IEnumerable items)
Returns
System.Collections.Generic.List<System.Object>
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |
NullIfEmpty(IEnumerable)
View Source
Declaration
public static IEnumerable NullIfEmpty(IEnumerable items)
Returns
System.Collections.IEnumerable
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |
IsEmpty(IEnumerable)
View Source
Declaration
public static bool IsEmpty(IEnumerable items)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |