Table of Contents

Class ArrayConvert

Namespace
Bonsai
Assembly
Bonsai.Core.dll

Provides methods for converting between instances of the Array class and string.

public static class ArrayConvert
Inheritance
ArrayConvert
Inherited Members

Methods

ToArray(string, int, Type)

Converts the string to an Array equivalent with the specified rank and elementType.

public static Array ToArray(string value, int rank, Type elementType)

Parameters

value string

The string to convert.

rank int

The rank of the result array; can be either one- or two-dimensional.

elementType Type

The type of the elements in the array.

Returns

Array

An Array equivalent of the string.

ToArray(string, int, Type, IFormatProvider)

Converts the string to an Array equivalent with the specified rank and elementType using a provider of culture-specific formatting information.

public static Array ToArray(string value, int rank, Type elementType, IFormatProvider provider)

Parameters

value string

The string to convert.

rank int

The rank of the result array; can be either one- or two-dimensional.

elementType Type

The type of the elements in the array.

provider IFormatProvider

An object that supplies culture-specific formatting information.

Returns

Array

An Array equivalent of the string.

ToString(Array)

Converts the Array to a string.

public static string ToString(Array array)

Parameters

array Array

The Array to be converted.

Returns

string

A string representation of the Array using the system's current culture.

ToString(Array, IFormatProvider)

Converts the Array to a string using the specified culture-specific format information.

public static string ToString(Array array, IFormatProvider provider)

Parameters

array Array

The Array to be converted.

provider IFormatProvider

An object that supplies culture-specific formatting information.

Returns

string

A string representation of the Array using the specified culture-specific format information.