Table of Contents

Class ArrayHelper

Namespace
CsvHelper
Assembly
CsvHelper.dll

Methods to help with arrays.

public static class ArrayHelper
Inheritance
ArrayHelper
Inherited Members

Methods

Contains(char[], in char)

Determines whether this given array contains the given character.

public static bool Contains(char[] array, in char c)

Parameters

array char[]

The array to search.

c char

The character to look for.

Returns

bool

true if the array contains the characters, otherwise false.

Trim(char[], ref int, ref int, char[])

Trims the characters off the start and end of the buffer by updating the start and length arguments.

public static void Trim(char[] buffer, ref int start, ref int length, char[] trimChars)

Parameters

buffer char[]

The buffer.

start int

The start.

length int

The length.

trimChars char[]

The characters to trim.