Class ListExtensions
Inheritance
System.Object
ListExtensions
Assembly: OpenAPI.dll
Syntax
public static class ListExtensions : object
Methods
|
Improve this Doc
View Source
AddRange<T>(IList<T>, IEnumerable<T>)
Declaration
public static void AddRange<T>(this IList<T> list, IEnumerable<T> collection)
Parameters
Type |
Name |
Description |
IList<T> |
list |
|
IEnumerable<T> |
collection |
|
Type Parameters
|
Improve this Doc
View Source
ForEach<T>(IList<T>, Action<T>)
Declaration
public static void ForEach<T>(this IList<T> list, Action<T> action)
Parameters
Type |
Name |
Description |
IList<T> |
list |
|
Action<T> |
action |
|
Type Parameters
|
Improve this Doc
View Source
ShiftLeft<T>(List<T>, Int32, Boolean)
Declaration
public static List<T> ShiftLeft<T>(this List<T> list, int shiftBy, bool nonLossy = true)
Parameters
Type |
Name |
Description |
List<T> |
list |
|
System.Int32 |
shiftBy |
|
System.Boolean |
nonLossy |
|
Returns
Type Parameters
|
Improve this Doc
View Source
ShiftRight<T>(List<T>, Int32)
Declaration
public static List<T> ShiftRight<T>(this List<T> list, int shiftBy)
Parameters
Type |
Name |
Description |
List<T> |
list |
|
System.Int32 |
shiftBy |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Sort<T>(IList<T>)
Declaration
public static void Sort<T>(this IList<T> list)
Parameters
Type |
Name |
Description |
IList<T> |
list |
|
Type Parameters
|
Improve this Doc
View Source
Sort<T>(IList<T>, Comparison<T>)
Declaration
public static void Sort<T>(this IList<T> list, Comparison<T> comparison)
Parameters
Type |
Name |
Description |
IList<T> |
list |
|
Comparison<T> |
comparison |
|
Type Parameters
|
Improve this Doc
View Source
Sort<T>(IList<T>, IComparer<T>)
Declaration
public static void Sort<T>(this IList<T> list, IComparer<T> comparer)
Parameters
Type |
Name |
Description |
IList<T> |
list |
|
IComparer<T> |
comparer |
|
Type Parameters
|
Improve this Doc
View Source
Sort<T>(IList<T>, Int32, Int32, IComparer<T>)
Declaration
public static void Sort<T>(this IList<T> list, int index, int count, IComparer<T> comparer)
Parameters
Type |
Name |
Description |
IList<T> |
list |
|
System.Int32 |
index |
|
System.Int32 |
count |
|
IComparer<T> |
comparer |
|
Type Parameters