Class ArrayManipulationExtensions
- Namespace
- HeroKit.Arrays
- Assembly
- HeroKit.dll
Provides extension methods for changing arrays.
public static class ArrayManipulationExtensions
- Inheritance
-
ArrayManipulationExtensions
- Inherited Members
Methods
CopyFrom<T>(T[], IEnumerable<T>)
Copies items into the array starting at index 0. Copying stops when the array is full.
public static int CopyFrom<T>(this T[] array, IEnumerable<T> items)
Parameters
arrayT[]The array to write to.
itemsIEnumerable<T>The items to copy.
Returns
- int
The number of items copied.
Type Parameters
TThe element type.