Table of Contents

Method ToArray

Namespace
Bonsai
Assembly
Bonsai.Core.dll

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.