Table of Contents

Class ArrayConvert

Namespace
NumSharp.Utilities
Assembly
NumSharp.dll

Presents all possible combinations of array conversion of types supported by numpy.

public static class ArrayConvert
Inheritance
ArrayConvert
Inherited Members

Remarks

Methods

Clone(Array)

Creates a clone of given sourceArray.

public static Array Clone(Array sourceArray)

Parameters

sourceArray Array

The array to clone

Returns

Array

Remarks

If possible, for performance reasons use generic version of this method.

Clone<T>(T[,,,])

Creates a clone of given sourceArray using CopyTo(Array, int).

public static T[,,,] Clone<T>(T[,,,] sourceArray)

Parameters

sourceArray T[,,,]

The array to clone

Returns

T[,,,]

Type Parameters

T

Clone<T>(T[,,])

Creates a clone of given sourceArray using CopyTo(Array, int).

public static T[,,] Clone<T>(T[,,] sourceArray)

Parameters

sourceArray T[,,]

The array to clone

Returns

T[,,]

Type Parameters

T

Clone<T>(T[,])

Creates a clone of given sourceArray using CopyTo(Array, int).

public static T[,] Clone<T>(T[,] sourceArray)

Parameters

sourceArray T[,]

The array to clone

Returns

T[,]

Type Parameters

T

Clone<T>(T[])

Creates a clone of given sourceArray.

public static T[] Clone<T>(T[] sourceArray)

Parameters

sourceArray T[]

The array to clone

Returns

T[]

Type Parameters

T

To(Array, NPTypeCode)

Converts sourceArray to an array of type typeCode.

public static Array To(Array sourceArray, NPTypeCode typeCode)

Parameters

sourceArray Array

The array to convert

typeCode NPTypeCode

The type to convert the data to

Returns

Array

Remarks

If sourceArray's element type equals to typeCode then a copy is returned

To(Array, Type)

Converts sourceArray to an array of type returnType.

public static Array To(Array sourceArray, Type returnType)

Parameters

sourceArray Array

The array to convert

returnType Type

The type to convert the data to

Returns

Array

Remarks

If sourceArray's element type equals to returnType then a copy is returned

ToBoolean(Array)

public static bool[] ToBoolean(Array sourceArray)

Parameters

sourceArray Array

Returns

bool[]

ToBoolean(bool[])

Converts bool array to a bool array.

public static bool[] ToBoolean(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

bool[]

Converted array of type Boolean

Remarks

Based on benchmark ArrayCopying

ToBoolean(byte[])

Converts byte array to a bool array.

public static bool[] ToBoolean(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(char[])

Converts char array to a bool array.

public static bool[] ToBoolean(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(decimal[])

Converts decimal array to a bool array.

public static bool[] ToBoolean(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(double[])

Converts double array to a bool array.

public static bool[] ToBoolean(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(short[])

Converts short array to a bool array.

public static bool[] ToBoolean(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(int[])

Converts int array to a bool array.

public static bool[] ToBoolean(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(long[])

Converts long array to a bool array.

public static bool[] ToBoolean(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(float[])

Converts float array to a bool array.

public static bool[] ToBoolean(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(string[])

Converts string array to a bool array.

public static bool[] ToBoolean(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(ushort[])

Converts ushort array to a bool array.

public static bool[] ToBoolean(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(uint[])

Converts uint array to a bool array.

public static bool[] ToBoolean(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToBoolean(ulong[])

Converts ulong array to a bool array.

public static bool[] ToBoolean(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

bool[]

Converted array of type Boolean

ToByte(Array)

public static byte[] ToByte(Array sourceArray)

Parameters

sourceArray Array

Returns

byte[]

ToByte(bool[])

Converts bool array to a byte array.

public static byte[] ToByte(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(byte[])

Converts byte array to a byte array.

public static byte[] ToByte(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

byte[]

Converted array of type Byte

Remarks

Based on benchmark ArrayCopying

ToByte(char[])

Converts char array to a byte array.

public static byte[] ToByte(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(decimal[])

Converts decimal array to a byte array.

public static byte[] ToByte(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(double[])

Converts double array to a byte array.

public static byte[] ToByte(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(short[])

Converts short array to a byte array.

public static byte[] ToByte(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(int[])

Converts int array to a byte array.

public static byte[] ToByte(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(long[])

Converts long array to a byte array.

public static byte[] ToByte(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(float[])

Converts float array to a byte array.

public static byte[] ToByte(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(string[])

Converts string array to a byte array.

public static byte[] ToByte(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(ushort[])

Converts ushort array to a byte array.

public static byte[] ToByte(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(uint[])

Converts uint array to a byte array.

public static byte[] ToByte(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToByte(ulong[])

Converts ulong array to a byte array.

public static byte[] ToByte(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

byte[]

Converted array of type Byte

ToChar(Array)

public static char[] ToChar(Array sourceArray)

Parameters

sourceArray Array

Returns

char[]

ToChar(bool[])

Converts bool array to a char array.

public static char[] ToChar(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(byte[])

Converts byte array to a char array.

public static char[] ToChar(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(char[])

Converts char array to a char array.

public static char[] ToChar(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

char[]

Converted array of type Char

Remarks

Based on benchmark ArrayCopying

ToChar(decimal[])

Converts decimal array to a char array.

public static char[] ToChar(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(double[])

Converts double array to a char array.

public static char[] ToChar(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(short[])

Converts short array to a char array.

public static char[] ToChar(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(int[])

Converts int array to a char array.

public static char[] ToChar(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(long[])

Converts long array to a char array.

public static char[] ToChar(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(float[])

Converts float array to a char array.

public static char[] ToChar(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(string[])

Converts string array to a char array.

public static char[] ToChar(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(ushort[])

Converts ushort array to a char array.

public static char[] ToChar(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(uint[])

Converts uint array to a char array.

public static char[] ToChar(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

char[]

Converted array of type Char

ToChar(ulong[])

Converts ulong array to a char array.

public static char[] ToChar(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

char[]

Converted array of type Char

ToComplex(Array)

public static Complex[] ToComplex(Array sourceArray)

Parameters

sourceArray Array

Returns

Complex[]

ToComplex(bool[])

Converts bool array to a Complex array.

public static Complex[] ToComplex(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(byte[])

Converts byte array to a Complex array.

public static Complex[] ToComplex(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(char[])

Converts char array to a Complex array.

public static Complex[] ToComplex(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(decimal[])

Converts decimal array to a Complex array.

public static Complex[] ToComplex(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(double[])

Converts double array to a Complex array.

public static Complex[] ToComplex(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(short[])

Converts short array to a Complex array.

public static Complex[] ToComplex(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(int[])

Converts int array to a Complex array.

public static Complex[] ToComplex(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(long[])

Converts long array to a Complex array.

public static Complex[] ToComplex(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(Complex[])

Converts Complex array to a Complex array.

public static Complex[] ToComplex(Complex[] sourceArray)

Parameters

sourceArray Complex[]

The array to convert

Returns

Complex[]

Converted array of type Complex

Remarks

Based on benchmark ArrayCopying

ToComplex(float[])

Converts float array to a Complex array.

public static Complex[] ToComplex(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(string[])

Converts string array to a Complex array.

public static Complex[] ToComplex(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

Complex[]

Converted array of type Complex

Exceptions

FormatException

A string in sourceArray has an invalid complex format

ToComplex(ushort[])

Converts ushort array to a Complex array.

public static Complex[] ToComplex(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(uint[])

Converts uint array to a Complex array.

public static Complex[] ToComplex(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToComplex(ulong[])

Converts ulong array to a Complex array.

public static Complex[] ToComplex(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

Complex[]

Converted array of type Complex

ToDecimal(Array)

public static decimal[] ToDecimal(Array sourceArray)

Parameters

sourceArray Array

Returns

decimal[]

ToDecimal(bool[])

Converts bool array to a decimal array.

public static decimal[] ToDecimal(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(byte[])

Converts byte array to a decimal array.

public static decimal[] ToDecimal(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(char[])

Converts char array to a decimal array.

public static decimal[] ToDecimal(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(decimal[])

Converts decimal array to a decimal array.

public static decimal[] ToDecimal(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

Remarks

Based on benchmark ArrayCopying

ToDecimal(double[])

Converts double array to a decimal array.

public static decimal[] ToDecimal(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(short[])

Converts short array to a decimal array.

public static decimal[] ToDecimal(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(int[])

Converts int array to a decimal array.

public static decimal[] ToDecimal(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(long[])

Converts long array to a decimal array.

public static decimal[] ToDecimal(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(float[])

Converts float array to a decimal array.

public static decimal[] ToDecimal(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(string[])

Converts string array to a decimal array.

public static decimal[] ToDecimal(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(ushort[])

Converts ushort array to a decimal array.

public static decimal[] ToDecimal(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(uint[])

Converts uint array to a decimal array.

public static decimal[] ToDecimal(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDecimal(ulong[])

Converts ulong array to a decimal array.

public static decimal[] ToDecimal(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

decimal[]

Converted array of type Decimal

ToDouble(Array)

public static double[] ToDouble(Array sourceArray)

Parameters

sourceArray Array

Returns

double[]

ToDouble(bool[])

Converts bool array to a double array.

public static double[] ToDouble(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(byte[])

Converts byte array to a double array.

public static double[] ToDouble(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(char[])

Converts char array to a double array.

public static double[] ToDouble(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(decimal[])

Converts decimal array to a double array.

public static double[] ToDouble(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(double[])

Converts double array to a double array.

public static double[] ToDouble(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

double[]

Converted array of type Double

Remarks

Based on benchmark ArrayCopying

ToDouble(short[])

Converts short array to a double array.

public static double[] ToDouble(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(int[])

Converts int array to a double array.

public static double[] ToDouble(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(long[])

Converts long array to a double array.

public static double[] ToDouble(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(float[])

Converts float array to a double array.

public static double[] ToDouble(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(string[])

Converts string array to a double array.

public static double[] ToDouble(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(ushort[])

Converts ushort array to a double array.

public static double[] ToDouble(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(uint[])

Converts uint array to a double array.

public static double[] ToDouble(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

double[]

Converted array of type Double

ToDouble(ulong[])

Converts ulong array to a double array.

public static double[] ToDouble(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

double[]

Converted array of type Double

ToInt16(Array)

public static short[] ToInt16(Array sourceArray)

Parameters

sourceArray Array

Returns

short[]

ToInt16(bool[])

Converts bool array to a short array.

public static short[] ToInt16(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(byte[])

Converts byte array to a short array.

public static short[] ToInt16(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(char[])

Converts char array to a short array.

public static short[] ToInt16(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(decimal[])

Converts decimal array to a short array.

public static short[] ToInt16(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(double[])

Converts double array to a short array.

public static short[] ToInt16(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(short[])

Converts short array to a short array.

public static short[] ToInt16(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

short[]

Converted array of type Int16

Remarks

Based on benchmark ArrayCopying

ToInt16(int[])

Converts int array to a short array.

public static short[] ToInt16(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(long[])

Converts long array to a short array.

public static short[] ToInt16(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(float[])

Converts float array to a short array.

public static short[] ToInt16(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(string[])

Converts string array to a short array.

public static short[] ToInt16(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(ushort[])

Converts ushort array to a short array.

public static short[] ToInt16(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(uint[])

Converts uint array to a short array.

public static short[] ToInt16(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt16(ulong[])

Converts ulong array to a short array.

public static short[] ToInt16(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

short[]

Converted array of type Int16

ToInt32(Array)

public static int[] ToInt32(Array sourceArray)

Parameters

sourceArray Array

Returns

int[]

ToInt32(bool[])

Converts bool array to a int array.

public static int[] ToInt32(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(byte[])

Converts byte array to a int array.

public static int[] ToInt32(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(char[])

Converts char array to a int array.

public static int[] ToInt32(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(decimal[])

Converts decimal array to a int array.

public static int[] ToInt32(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(double[])

Converts double array to a int array.

public static int[] ToInt32(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(short[])

Converts short array to a int array.

public static int[] ToInt32(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(int[])

Converts int array to a int array.

public static int[] ToInt32(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

int[]

Converted array of type Int32

Remarks

Based on benchmark ArrayCopying

ToInt32(long[])

Converts long array to a int array.

public static int[] ToInt32(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(float[])

Converts float array to a int array.

public static int[] ToInt32(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(string[])

Converts string array to a int array.

public static int[] ToInt32(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(ushort[])

Converts ushort array to a int array.

public static int[] ToInt32(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(uint[])

Converts uint array to a int array.

public static int[] ToInt32(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt32(ulong[])

Converts ulong array to a int array.

public static int[] ToInt32(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

int[]

Converted array of type Int32

ToInt64(Array)

public static long[] ToInt64(Array sourceArray)

Parameters

sourceArray Array

Returns

long[]

ToInt64(bool[])

Converts bool array to a long array.

public static long[] ToInt64(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(byte[])

Converts byte array to a long array.

public static long[] ToInt64(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(char[])

Converts char array to a long array.

public static long[] ToInt64(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(decimal[])

Converts decimal array to a long array.

public static long[] ToInt64(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(double[])

Converts double array to a long array.

public static long[] ToInt64(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(short[])

Converts short array to a long array.

public static long[] ToInt64(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(int[])

Converts int array to a long array.

public static long[] ToInt64(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(long[])

Converts long array to a long array.

public static long[] ToInt64(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

long[]

Converted array of type Int64

Remarks

Based on benchmark ArrayCopying

ToInt64(float[])

Converts float array to a long array.

public static long[] ToInt64(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(string[])

Converts string array to a long array.

public static long[] ToInt64(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(ushort[])

Converts ushort array to a long array.

public static long[] ToInt64(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(uint[])

Converts uint array to a long array.

public static long[] ToInt64(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

long[]

Converted array of type Int64

ToInt64(ulong[])

Converts ulong array to a long array.

public static long[] ToInt64(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

long[]

Converted array of type Int64

ToSingle(Array)

public static float[] ToSingle(Array sourceArray)

Parameters

sourceArray Array

Returns

float[]

ToSingle(bool[])

Converts bool array to a float array.

public static float[] ToSingle(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(byte[])

Converts byte array to a float array.

public static float[] ToSingle(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(char[])

Converts char array to a float array.

public static float[] ToSingle(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(decimal[])

Converts decimal array to a float array.

public static float[] ToSingle(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(double[])

Converts double array to a float array.

public static float[] ToSingle(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(short[])

Converts short array to a float array.

public static float[] ToSingle(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(int[])

Converts int array to a float array.

public static float[] ToSingle(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(long[])

Converts long array to a float array.

public static float[] ToSingle(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(float[])

Converts float array to a float array.

public static float[] ToSingle(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

float[]

Converted array of type Single

Remarks

Based on benchmark ArrayCopying

ToSingle(string[])

Converts string array to a float array.

public static float[] ToSingle(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(ushort[])

Converts ushort array to a float array.

public static float[] ToSingle(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(uint[])

Converts uint array to a float array.

public static float[] ToSingle(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

float[]

Converted array of type Single

ToSingle(ulong[])

Converts ulong array to a float array.

public static float[] ToSingle(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

float[]

Converted array of type Single

ToString(Array)

public static string[] ToString(Array sourceArray)

Parameters

sourceArray Array

Returns

string[]

ToString(bool[])

Converts bool array to a string array.

public static string[] ToString(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

string[]

Converted array of type String

ToString(byte[])

Converts byte array to a string array.

public static string[] ToString(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

string[]

Converted array of type String

ToString(char[])

Converts char array to a string array.

public static string[] ToString(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

string[]

Converted array of type String

ToString(decimal[])

Converts decimal array to a string array.

public static string[] ToString(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

string[]

Converted array of type String

ToString(double[])

Converts double array to a string array.

public static string[] ToString(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

string[]

Converted array of type String

ToString(short[])

Converts short array to a string array.

public static string[] ToString(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

string[]

Converted array of type String

ToString(int[])

Converts int array to a string array.

public static string[] ToString(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

string[]

Converted array of type String

ToString(long[])

Converts long array to a string array.

public static string[] ToString(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

string[]

Converted array of type String

ToString(float[])

Converts float array to a string array.

public static string[] ToString(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

string[]

Converted array of type String

ToString(string[])

Converts string array to a string array.

public static string[] ToString(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

string[]

Converted array of type String

Remarks

Based on benchmark ArrayCopying

ToString(ushort[])

Converts ushort array to a string array.

public static string[] ToString(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

string[]

Converted array of type String

ToString(uint[])

Converts uint array to a string array.

public static string[] ToString(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

string[]

Converted array of type String

ToString(ulong[])

Converts ulong array to a string array.

public static string[] ToString(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

string[]

Converted array of type String

ToUInt16(Array)

public static ushort[] ToUInt16(Array sourceArray)

Parameters

sourceArray Array

Returns

ushort[]

ToUInt16(bool[])

Converts bool array to a ushort array.

public static ushort[] ToUInt16(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(byte[])

Converts byte array to a ushort array.

public static ushort[] ToUInt16(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(char[])

Converts char array to a ushort array.

public static ushort[] ToUInt16(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(decimal[])

Converts decimal array to a ushort array.

public static ushort[] ToUInt16(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(double[])

Converts double array to a ushort array.

public static ushort[] ToUInt16(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(short[])

Converts short array to a ushort array.

public static ushort[] ToUInt16(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(int[])

Converts int array to a ushort array.

public static ushort[] ToUInt16(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(long[])

Converts long array to a ushort array.

public static ushort[] ToUInt16(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(float[])

Converts float array to a ushort array.

public static ushort[] ToUInt16(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(string[])

Converts string array to a ushort array.

public static ushort[] ToUInt16(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(ushort[])

Converts ushort array to a ushort array.

public static ushort[] ToUInt16(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

Remarks

Based on benchmark ArrayCopying

ToUInt16(uint[])

Converts uint array to a ushort array.

public static ushort[] ToUInt16(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt16(ulong[])

Converts ulong array to a ushort array.

public static ushort[] ToUInt16(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

ushort[]

Converted array of type UInt16

ToUInt32(Array)

public static uint[] ToUInt32(Array sourceArray)

Parameters

sourceArray Array

Returns

uint[]

ToUInt32(bool[])

Converts bool array to a uint array.

public static uint[] ToUInt32(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(byte[])

Converts byte array to a uint array.

public static uint[] ToUInt32(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(char[])

Converts char array to a uint array.

public static uint[] ToUInt32(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(decimal[])

Converts decimal array to a uint array.

public static uint[] ToUInt32(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(double[])

Converts double array to a uint array.

public static uint[] ToUInt32(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(short[])

Converts short array to a uint array.

public static uint[] ToUInt32(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(int[])

Converts int array to a uint array.

public static uint[] ToUInt32(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(long[])

Converts long array to a uint array.

public static uint[] ToUInt32(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(float[])

Converts float array to a uint array.

public static uint[] ToUInt32(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(string[])

Converts string array to a uint array.

public static uint[] ToUInt32(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(ushort[])

Converts ushort array to a uint array.

public static uint[] ToUInt32(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt32(uint[])

Converts uint array to a uint array.

public static uint[] ToUInt32(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

uint[]

Converted array of type UInt32

Remarks

Based on benchmark ArrayCopying

ToUInt32(ulong[])

Converts ulong array to a uint array.

public static uint[] ToUInt32(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

uint[]

Converted array of type UInt32

ToUInt64(Array)

public static ulong[] ToUInt64(Array sourceArray)

Parameters

sourceArray Array

Returns

ulong[]

ToUInt64(bool[])

Converts bool array to a ulong array.

public static ulong[] ToUInt64(bool[] sourceArray)

Parameters

sourceArray bool[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(byte[])

Converts byte array to a ulong array.

public static ulong[] ToUInt64(byte[] sourceArray)

Parameters

sourceArray byte[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(char[])

Converts char array to a ulong array.

public static ulong[] ToUInt64(char[] sourceArray)

Parameters

sourceArray char[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(decimal[])

Converts decimal array to a ulong array.

public static ulong[] ToUInt64(decimal[] sourceArray)

Parameters

sourceArray decimal[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(double[])

Converts double array to a ulong array.

public static ulong[] ToUInt64(double[] sourceArray)

Parameters

sourceArray double[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(short[])

Converts short array to a ulong array.

public static ulong[] ToUInt64(short[] sourceArray)

Parameters

sourceArray short[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(int[])

Converts int array to a ulong array.

public static ulong[] ToUInt64(int[] sourceArray)

Parameters

sourceArray int[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(long[])

Converts long array to a ulong array.

public static ulong[] ToUInt64(long[] sourceArray)

Parameters

sourceArray long[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(float[])

Converts float array to a ulong array.

public static ulong[] ToUInt64(float[] sourceArray)

Parameters

sourceArray float[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(string[])

Converts string array to a ulong array.

public static ulong[] ToUInt64(string[] sourceArray)

Parameters

sourceArray string[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(ushort[])

Converts ushort array to a ulong array.

public static ulong[] ToUInt64(ushort[] sourceArray)

Parameters

sourceArray ushort[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(uint[])

Converts uint array to a ulong array.

public static ulong[] ToUInt64(uint[] sourceArray)

Parameters

sourceArray uint[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

ToUInt64(ulong[])

Converts ulong array to a ulong array.

public static ulong[] ToUInt64(ulong[] sourceArray)

Parameters

sourceArray ulong[]

The array to convert

Returns

ulong[]

Converted array of type UInt64

Remarks

Based on benchmark ArrayCopying

To<T>(Array)

Converts sourceArray to an array of type returnType.

public static T[] To<T>(Array sourceArray)

Parameters

sourceArray Array

The array to convert

Returns

T[]

Type Parameters

T

Remarks

If sourceArray's element type equals to returnType then a copy is returned