Class ArrayConvert
Presents all possible combinations of array conversion of types supported by numpy.
public static class ArrayConvert
- Inheritance
-
ArrayConvert
- Inherited Members
Remarks
Implementation is based on Array.ConvertAll from corefx source at https://github.com/dotnet/corefx/blob/b2097cbdcb26f7f317252334ddcce101a20b7f3d/src/Common/src/CoreLib/System/Array.cs#L586
Methods
Clone(Array)
Creates a clone of given sourceArray.
public static Array Clone(Array sourceArray)
Parameters
sourceArrayArrayThe array to clone
Returns
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
sourceArrayT[,,,]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
sourceArrayT[,,]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
sourceArrayT[,]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
sourceArrayT[]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
sourceArrayArrayThe array to convert
typeCodeNPTypeCodeThe type to convert the data to
Returns
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
Returns
Remarks
If sourceArray's element type equals to returnType then a copy is returned
ToBoolean(Array)
public static bool[] ToBoolean(Array sourceArray)
Parameters
sourceArrayArray
Returns
- bool[]
ToBoolean(bool[])
public static bool[] ToBoolean(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- bool[]
Converted array of type Boolean
Remarks
Based on benchmark ArrayCopying
ToBoolean(byte[])
public static bool[] ToBoolean(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(char[])
public static bool[] ToBoolean(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(decimal[])
public static bool[] ToBoolean(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(double[])
public static bool[] ToBoolean(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(short[])
public static bool[] ToBoolean(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(int[])
public static bool[] ToBoolean(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(long[])
public static bool[] ToBoolean(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(float[])
public static bool[] ToBoolean(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(string[])
public static bool[] ToBoolean(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(ushort[])
public static bool[] ToBoolean(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(uint[])
public static bool[] ToBoolean(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToBoolean(ulong[])
public static bool[] ToBoolean(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- bool[]
Converted array of type Boolean
ToByte(Array)
public static byte[] ToByte(Array sourceArray)
Parameters
sourceArrayArray
Returns
- byte[]
ToByte(bool[])
public static byte[] ToByte(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(byte[])
public static byte[] ToByte(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- byte[]
Converted array of type Byte
Remarks
Based on benchmark ArrayCopying
ToByte(char[])
public static byte[] ToByte(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(decimal[])
public static byte[] ToByte(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(double[])
public static byte[] ToByte(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(short[])
public static byte[] ToByte(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(int[])
public static byte[] ToByte(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(long[])
public static byte[] ToByte(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(float[])
public static byte[] ToByte(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(string[])
public static byte[] ToByte(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(ushort[])
public static byte[] ToByte(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(uint[])
public static byte[] ToByte(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToByte(ulong[])
public static byte[] ToByte(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- byte[]
Converted array of type Byte
ToChar(Array)
public static char[] ToChar(Array sourceArray)
Parameters
sourceArrayArray
Returns
- char[]
ToChar(bool[])
public static char[] ToChar(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(byte[])
public static char[] ToChar(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(char[])
public static char[] ToChar(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- char[]
Converted array of type Char
Remarks
Based on benchmark ArrayCopying
ToChar(decimal[])
public static char[] ToChar(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(double[])
public static char[] ToChar(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(short[])
public static char[] ToChar(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(int[])
public static char[] ToChar(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(long[])
public static char[] ToChar(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(float[])
public static char[] ToChar(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(string[])
public static char[] ToChar(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(ushort[])
public static char[] ToChar(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(uint[])
public static char[] ToChar(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- char[]
Converted array of type Char
ToChar(ulong[])
public static char[] ToChar(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- char[]
Converted array of type Char
ToComplex(Array)
public static Complex[] ToComplex(Array sourceArray)
Parameters
sourceArrayArray
Returns
- Complex[]
ToComplex(bool[])
public static Complex[] ToComplex(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(byte[])
public static Complex[] ToComplex(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(char[])
public static Complex[] ToComplex(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(decimal[])
public static Complex[] ToComplex(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(double[])
public static Complex[] ToComplex(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(short[])
public static Complex[] ToComplex(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(int[])
public static Complex[] ToComplex(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(long[])
public static Complex[] ToComplex(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(Complex[])
public static Complex[] ToComplex(Complex[] sourceArray)
Parameters
sourceArrayComplex[]The array to convert
Returns
- Complex[]
Converted array of type Complex
Remarks
Based on benchmark ArrayCopying
ToComplex(float[])
public static Complex[] ToComplex(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(string[])
public static Complex[] ToComplex(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- Complex[]
Converted array of type Complex
Exceptions
- FormatException
A string in sourceArray has an invalid complex format
ToComplex(ushort[])
public static Complex[] ToComplex(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(uint[])
public static Complex[] ToComplex(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToComplex(ulong[])
public static Complex[] ToComplex(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- Complex[]
Converted array of type Complex
ToDecimal(Array)
public static decimal[] ToDecimal(Array sourceArray)
Parameters
sourceArrayArray
Returns
- decimal[]
ToDecimal(bool[])
public static decimal[] ToDecimal(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(byte[])
public static decimal[] ToDecimal(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(char[])
public static decimal[] ToDecimal(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(decimal[])
public static decimal[] ToDecimal(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
Remarks
Based on benchmark ArrayCopying
ToDecimal(double[])
public static decimal[] ToDecimal(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(short[])
public static decimal[] ToDecimal(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(int[])
public static decimal[] ToDecimal(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(long[])
public static decimal[] ToDecimal(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(float[])
public static decimal[] ToDecimal(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(string[])
public static decimal[] ToDecimal(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(ushort[])
public static decimal[] ToDecimal(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(uint[])
public static decimal[] ToDecimal(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDecimal(ulong[])
public static decimal[] ToDecimal(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- decimal[]
Converted array of type Decimal
ToDouble(Array)
public static double[] ToDouble(Array sourceArray)
Parameters
sourceArrayArray
Returns
- double[]
ToDouble(bool[])
public static double[] ToDouble(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(byte[])
public static double[] ToDouble(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(char[])
public static double[] ToDouble(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(decimal[])
public static double[] ToDouble(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(double[])
public static double[] ToDouble(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- double[]
Converted array of type Double
Remarks
Based on benchmark ArrayCopying
ToDouble(short[])
public static double[] ToDouble(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(int[])
public static double[] ToDouble(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(long[])
public static double[] ToDouble(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(float[])
public static double[] ToDouble(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(string[])
public static double[] ToDouble(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(ushort[])
public static double[] ToDouble(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(uint[])
public static double[] ToDouble(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- double[]
Converted array of type Double
ToDouble(ulong[])
public static double[] ToDouble(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- double[]
Converted array of type Double
ToInt16(Array)
public static short[] ToInt16(Array sourceArray)
Parameters
sourceArrayArray
Returns
- short[]
ToInt16(bool[])
public static short[] ToInt16(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(byte[])
public static short[] ToInt16(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(char[])
public static short[] ToInt16(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(decimal[])
public static short[] ToInt16(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(double[])
public static short[] ToInt16(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(short[])
public static short[] ToInt16(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- short[]
Converted array of type Int16
Remarks
Based on benchmark ArrayCopying
ToInt16(int[])
public static short[] ToInt16(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(long[])
public static short[] ToInt16(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(float[])
public static short[] ToInt16(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(string[])
public static short[] ToInt16(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(ushort[])
public static short[] ToInt16(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(uint[])
public static short[] ToInt16(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt16(ulong[])
public static short[] ToInt16(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- short[]
Converted array of type Int16
ToInt32(Array)
public static int[] ToInt32(Array sourceArray)
Parameters
sourceArrayArray
Returns
- int[]
ToInt32(bool[])
public static int[] ToInt32(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(byte[])
public static int[] ToInt32(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(char[])
public static int[] ToInt32(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(decimal[])
public static int[] ToInt32(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(double[])
public static int[] ToInt32(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(short[])
public static int[] ToInt32(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(int[])
public static int[] ToInt32(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- int[]
Converted array of type Int32
Remarks
Based on benchmark ArrayCopying
ToInt32(long[])
public static int[] ToInt32(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(float[])
public static int[] ToInt32(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(string[])
public static int[] ToInt32(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(ushort[])
public static int[] ToInt32(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(uint[])
public static int[] ToInt32(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt32(ulong[])
public static int[] ToInt32(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- int[]
Converted array of type Int32
ToInt64(Array)
public static long[] ToInt64(Array sourceArray)
Parameters
sourceArrayArray
Returns
- long[]
ToInt64(bool[])
public static long[] ToInt64(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(byte[])
public static long[] ToInt64(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(char[])
public static long[] ToInt64(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(decimal[])
public static long[] ToInt64(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(double[])
public static long[] ToInt64(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(short[])
public static long[] ToInt64(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(int[])
public static long[] ToInt64(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(long[])
public static long[] ToInt64(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- long[]
Converted array of type Int64
Remarks
Based on benchmark ArrayCopying
ToInt64(float[])
public static long[] ToInt64(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(string[])
public static long[] ToInt64(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(ushort[])
public static long[] ToInt64(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(uint[])
public static long[] ToInt64(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- long[]
Converted array of type Int64
ToInt64(ulong[])
public static long[] ToInt64(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- long[]
Converted array of type Int64
ToSingle(Array)
public static float[] ToSingle(Array sourceArray)
Parameters
sourceArrayArray
Returns
- float[]
ToSingle(bool[])
public static float[] ToSingle(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(byte[])
public static float[] ToSingle(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(char[])
public static float[] ToSingle(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(decimal[])
public static float[] ToSingle(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(double[])
public static float[] ToSingle(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(short[])
public static float[] ToSingle(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(int[])
public static float[] ToSingle(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(long[])
public static float[] ToSingle(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(float[])
public static float[] ToSingle(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- float[]
Converted array of type Single
Remarks
Based on benchmark ArrayCopying
ToSingle(string[])
public static float[] ToSingle(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(ushort[])
public static float[] ToSingle(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(uint[])
public static float[] ToSingle(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- float[]
Converted array of type Single
ToSingle(ulong[])
public static float[] ToSingle(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- float[]
Converted array of type Single
ToString(Array)
public static string[] ToString(Array sourceArray)
Parameters
sourceArrayArray
Returns
- string[]
ToString(bool[])
public static string[] ToString(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- string[]
Converted array of type String
ToString(byte[])
public static string[] ToString(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- string[]
Converted array of type String
ToString(char[])
public static string[] ToString(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- string[]
Converted array of type String
ToString(decimal[])
public static string[] ToString(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- string[]
Converted array of type String
ToString(double[])
public static string[] ToString(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- string[]
Converted array of type String
ToString(short[])
public static string[] ToString(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- string[]
Converted array of type String
ToString(int[])
public static string[] ToString(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- string[]
Converted array of type String
ToString(long[])
public static string[] ToString(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- string[]
Converted array of type String
ToString(float[])
public static string[] ToString(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- string[]
Converted array of type String
ToString(string[])
public static string[] ToString(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- string[]
Converted array of type String
Remarks
Based on benchmark ArrayCopying
ToString(ushort[])
public static string[] ToString(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- string[]
Converted array of type String
ToString(uint[])
public static string[] ToString(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- string[]
Converted array of type String
ToString(ulong[])
public static string[] ToString(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- string[]
Converted array of type String
ToUInt16(Array)
public static ushort[] ToUInt16(Array sourceArray)
Parameters
sourceArrayArray
Returns
- ushort[]
ToUInt16(bool[])
public static ushort[] ToUInt16(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(byte[])
public static ushort[] ToUInt16(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(char[])
public static ushort[] ToUInt16(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(decimal[])
public static ushort[] ToUInt16(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(double[])
public static ushort[] ToUInt16(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(short[])
public static ushort[] ToUInt16(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(int[])
public static ushort[] ToUInt16(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(long[])
public static ushort[] ToUInt16(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(float[])
public static ushort[] ToUInt16(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(string[])
public static ushort[] ToUInt16(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(ushort[])
public static ushort[] ToUInt16(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
Remarks
Based on benchmark ArrayCopying
ToUInt16(uint[])
public static ushort[] ToUInt16(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt16(ulong[])
public static ushort[] ToUInt16(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- ushort[]
Converted array of type UInt16
ToUInt32(Array)
public static uint[] ToUInt32(Array sourceArray)
Parameters
sourceArrayArray
Returns
- uint[]
ToUInt32(bool[])
public static uint[] ToUInt32(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(byte[])
public static uint[] ToUInt32(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(char[])
public static uint[] ToUInt32(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(decimal[])
public static uint[] ToUInt32(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(double[])
public static uint[] ToUInt32(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(short[])
public static uint[] ToUInt32(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(int[])
public static uint[] ToUInt32(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(long[])
public static uint[] ToUInt32(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(float[])
public static uint[] ToUInt32(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(string[])
public static uint[] ToUInt32(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(ushort[])
public static uint[] ToUInt32(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt32(uint[])
public static uint[] ToUInt32(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- uint[]
Converted array of type UInt32
Remarks
Based on benchmark ArrayCopying
ToUInt32(ulong[])
public static uint[] ToUInt32(ulong[] sourceArray)
Parameters
sourceArrayulong[]The array to convert
Returns
- uint[]
Converted array of type UInt32
ToUInt64(Array)
public static ulong[] ToUInt64(Array sourceArray)
Parameters
sourceArrayArray
Returns
- ulong[]
ToUInt64(bool[])
public static ulong[] ToUInt64(bool[] sourceArray)
Parameters
sourceArraybool[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(byte[])
public static ulong[] ToUInt64(byte[] sourceArray)
Parameters
sourceArraybyte[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(char[])
public static ulong[] ToUInt64(char[] sourceArray)
Parameters
sourceArraychar[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(decimal[])
public static ulong[] ToUInt64(decimal[] sourceArray)
Parameters
sourceArraydecimal[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(double[])
public static ulong[] ToUInt64(double[] sourceArray)
Parameters
sourceArraydouble[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(short[])
public static ulong[] ToUInt64(short[] sourceArray)
Parameters
sourceArrayshort[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(int[])
public static ulong[] ToUInt64(int[] sourceArray)
Parameters
sourceArrayint[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(long[])
public static ulong[] ToUInt64(long[] sourceArray)
Parameters
sourceArraylong[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(float[])
public static ulong[] ToUInt64(float[] sourceArray)
Parameters
sourceArrayfloat[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(string[])
public static ulong[] ToUInt64(string[] sourceArray)
Parameters
sourceArraystring[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(ushort[])
public static ulong[] ToUInt64(ushort[] sourceArray)
Parameters
sourceArrayushort[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(uint[])
public static ulong[] ToUInt64(uint[] sourceArray)
Parameters
sourceArrayuint[]The array to convert
Returns
- ulong[]
Converted array of type UInt64
ToUInt64(ulong[])
public static ulong[] ToUInt64(ulong[] sourceArray)
Parameters
sourceArrayulong[]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
sourceArrayArrayThe array to convert
Returns
- T[]
Type Parameters
T
Remarks
If sourceArray's element type equals to returnType then a copy is returned