Skip to content

Extensions

Artem Kirgizov edited this page May 31, 2021 · 4 revisions
Namespace: Toolkit.Sequences

Extensions - a class for storing methods for working with sequences, as well as similar extension methods.

The main features of the class:

var list = new List<int>() { 1, 2, 3, 4, 5 };

var reorderedList = Extensions.Reorder(list).ToList(); // usual method
var reorderedList = list.Reorder().ToList(); // extension methods
int first = 1;
int second = 20;

Extensions.Swap(ref first, ref second); // now first is 20 and second is 1
  • And others