Class ListExtensions
List extensions helper.
Inherited Members
Namespace: EduCATS.Helpers.Extensions
Assembly: EduCATS.dll
Syntax
public static class ListExtensions
Methods
Swap<T>(List<T>, int, int)
Swap list items.
Declaration
public static void Swap<T>(this List<T> list, int index1, int index2)
Parameters
Type | Name | Description |
---|---|---|
List<T> | list | Original list. |
int | index1 | The first item. |
int | index2 | The second item. |
Type Parameters
Name | Description |
---|---|
T | Object's type to swap. |