Table of Contents

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

array T[]

The array to write to.

items IEnumerable<T>

The items to copy.

Returns

int

The number of items copied.

Type Parameters

T

The element type.