Method ToArray
- Namespace
- Bonsai
- Assembly
- Bonsai.Core.dll
ToArray(string, int, Type)
public static Array ToArray(string value, int rank, Type elementType)
Parameters
value
stringThe string to convert.
rank
intThe rank of the result array; can be either one- or two-dimensional.
elementType
TypeThe type of the elements in the array.
Returns
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
stringThe string to convert.
rank
intThe rank of the result array; can be either one- or two-dimensional.
elementType
TypeThe type of the elements in the array.
provider
IFormatProviderAn object that supplies culture-specific formatting information.