Table of Contents

Class Converts

Namespace
NumSharp.Utilities
Assembly
NumSharp.dll

Provides various methods related to Convert.

[SuppressMessage("ReSharper", "MergeConditionalExpression")]
[SuppressMessage("ReSharper", "JoinDeclarationAndInitializer")]
public static class Converts
Inheritance
Converts
Inherited Members

Fields

DBNull

public static readonly object DBNull

Field Value

object

Methods

ChangeType(object, NPTypeCode)

Returns an object of the specified type whose value is equivalent to the specified object.

public static object ChangeType(object value, NPTypeCode typeCode)

Parameters

value object

An object that implements the IConvertible interface.

typeCode NPTypeCode

The type of object to return.

Returns

object

An object whose underlying type is typeCode and whose value is equivalent to value. -or- A null reference (Nothing in Visual Basic), if value is null and typeCode is Empty, String, or Object.

Exceptions

InvalidCastException

This conversion is not supported. -or- value is null and typeCode specifies a value type. -or- value does not implement the IConvertible interface.

FormatException

value is not in a format recognized by the typeCode type.

OverflowException

value represents a number that is out of the range of the typeCode type.

ArgumentException

typeCode is invalid.

ChangeType(object, NPTypeCode, IFormatProvider)

Returns an object of the specified type whose value is equivalent to the specified object.

public static object ChangeType(object value, NPTypeCode typeCode, IFormatProvider provider)

Parameters

value object

An object that implements the IConvertible interface.

typeCode NPTypeCode

The type of object to return.

provider IFormatProvider

Returns

object

An object whose underlying type is typeCode and whose value is equivalent to value. -or- A null reference (Nothing in Visual Basic), if value is null and typeCode is Empty, String, or Object.

Exceptions

InvalidCastException

This conversion is not supported. -or- value is null and typeCode specifies a value type. -or- value does not implement the IConvertible interface.

FormatException

value is not in a format recognized by the typeCode type.

OverflowException

value represents a number that is out of the range of the typeCode type.

ArgumentException

typeCode is invalid.

ChangeType(object, TypeCode)

public static object ChangeType(object value, TypeCode typeCode)

Parameters

value object
typeCode TypeCode

Returns

object

ChangeType(object, TypeCode, IFormatProvider)

public static object ChangeType(object value, TypeCode typeCode, IFormatProvider provider)

Parameters

value object
typeCode TypeCode
provider IFormatProvider

Returns

object

ChangeType<TOut>(object)

Returns an object of the specified type whose value is equivalent to the specified object.

public static TOut ChangeType<TOut>(object value)

Parameters

value object

An object that implements the IConvertible interface.

Returns

TOut

An object whose underlying type is typeCode and whose value is equivalent to value. -or- A null reference (Nothing in Visual Basic), if value is null and typeCode is Empty, String, or Object.

Type Parameters

TOut

Exceptions

InvalidCastException

This conversion is not supported. -or- value is null and typeCode specifies a value type. -or- value does not implement the IConvertible interface.

FormatException

value is not in a format recognized by the typeCode type.

OverflowException

value represents a number that is out of the range of the typeCode type.

ArgumentException

typeCode is invalid.

ChangeType<T>(T, NPTypeCode)

Returns an object of the specified type whose value is equivalent to the specified object.

public static object ChangeType<T>(T value, NPTypeCode typeCode) where T : IConvertible

Parameters

value T

An object that implements the IConvertible interface.

typeCode NPTypeCode

The type of object to return.

Returns

object

An object whose underlying type is typeCode and whose value is equivalent to value. -or- A null reference (Nothing in Visual Basic), if value is null and typeCode is Empty, String, or Object.

Type Parameters

T

Exceptions

InvalidCastException

This conversion is not supported. -or- value is null and typeCode specifies a value type. -or- value does not implement the IConvertible interface.

FormatException

value is not in a format recognized by the typeCode type.

OverflowException

value represents a number that is out of the range of the typeCode type.

ArgumentException

typeCode is invalid.

ChangeType<TIn, TOut>(TIn)

Returns an object of the specified type whose value is equivalent to the specified object.

public static TOut ChangeType<TIn, TOut>(TIn value) where TIn : IConvertible where TOut : IConvertible

Parameters

value TIn

An object that implements the IConvertible interface.

Returns

TOut

An object whose underlying type is typeCode and whose value is equivalent to value. -or- A null reference (Nothing in Visual Basic), if value is null and typeCode is Empty, String, or Object.

Type Parameters

TIn
TOut

Exceptions

InvalidCastException

This conversion is not supported. -or- value is null and typeCode specifies a value type. -or- value does not implement the IConvertible interface.

FormatException

value is not in a format recognized by the typeCode type.

OverflowException

value represents a number that is out of the range of the typeCode type.

ArgumentException

typeCode is invalid.

FindConverter<TIn, TOut>()

Finds the conversion method from Convert based on TIn and TOut.

public static Func<TIn, TOut> FindConverter<TIn, TOut>()

Returns

Func<TIn, TOut>

Type Parameters

TIn

The type that is expected as input and to be converted from

TOut

The type we expect to convert to.

FromBase64CharArray(char[], int, int)

Converts the specified range of a Char array, which encodes binary data as Base64 digits, to the equivalent byte array.

public static byte[] FromBase64CharArray(char[] inArray, int offset, int length)

Parameters

inArray char[]

Chars representing Base64 encoding characters

offset int

A position within the input array.

length int

Number of element to convert.

Returns

byte[]

The array of bytes represented by the specified Base64 encoding characters.

FromBase64String(string)

Converts the specified string, which encodes binary data as Base64 digits, to the equivalent byte array.

public static byte[] FromBase64String(string s)

Parameters

s string

The string to convert

Returns

byte[]

The array of bytes represented by the specifed Base64 string.

GetTypeCode(object)

[Pure]
public static TypeCode GetTypeCode(object value)

Parameters

value object

Returns

TypeCode

IsDBNull(object)

[Pure]
public static bool IsDBNull(object value)

Parameters

value object

Returns

bool

ToBase64CharArray(byte[], int, int, char[], int)

public static int ToBase64CharArray(byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut)

Parameters

inArray byte[]
offsetIn int
length int
outArray char[]
offsetOut int

Returns

int

ToBase64CharArray(byte[], int, int, char[], int, Base64FormattingOptions)

[ComVisible(false)]
public static int ToBase64CharArray(byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut, Base64FormattingOptions options)

Parameters

inArray byte[]
offsetIn int
length int
outArray char[]
offsetOut int
options Base64FormattingOptions

Returns

int

ToBoolean(NDArray)

public static bool ToBoolean(NDArray nd)

Parameters

nd NDArray

Returns

bool

ToBoolean(bool)

public static bool ToBoolean(bool value)

Parameters

value bool

Returns

bool

ToBoolean(byte)

public static bool ToBoolean(byte value)

Parameters

value byte

Returns

bool

ToBoolean(char)

public static bool ToBoolean(char value)

Parameters

value char

Returns

bool

ToBoolean(DateTime)

public static bool ToBoolean(DateTime value)

Parameters

value DateTime

Returns

bool

ToBoolean(decimal)

public static bool ToBoolean(decimal value)

Parameters

value decimal

Returns

bool

ToBoolean(double)

public static bool ToBoolean(double value)

Parameters

value double

Returns

bool

ToBoolean(short)

public static bool ToBoolean(short value)

Parameters

value short

Returns

bool

ToBoolean(int)

public static bool ToBoolean(int value)

Parameters

value int

Returns

bool

ToBoolean(long)

public static bool ToBoolean(long value)

Parameters

value long

Returns

bool

ToBoolean(object)

public static bool ToBoolean(object value)

Parameters

value object

Returns

bool

ToBoolean(object, IFormatProvider)

public static bool ToBoolean(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

bool

ToBoolean(sbyte)

public static bool ToBoolean(sbyte value)

Parameters

value sbyte

Returns

bool

ToBoolean(float)

public static bool ToBoolean(float value)

Parameters

value float

Returns

bool

ToBoolean(string)

public static bool ToBoolean(string value)

Parameters

value string

Returns

bool

ToBoolean(string, IFormatProvider)

public static bool ToBoolean(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

bool

ToBoolean(ushort)

public static bool ToBoolean(ushort value)

Parameters

value ushort

Returns

bool

ToBoolean(uint)

public static bool ToBoolean(uint value)

Parameters

value uint

Returns

bool

ToBoolean(ulong)

public static bool ToBoolean(ulong value)

Parameters

value ulong

Returns

bool

ToByte(NDArray)

public static byte ToByte(NDArray nd)

Parameters

nd NDArray

Returns

byte

ToByte(bool)

public static byte ToByte(bool value)

Parameters

value bool

Returns

byte

ToByte(byte)

public static byte ToByte(byte value)

Parameters

value byte

Returns

byte

ToByte(char)

public static byte ToByte(char value)

Parameters

value char

Returns

byte

ToByte(DateTime)

public static byte ToByte(DateTime value)

Parameters

value DateTime

Returns

byte

ToByte(decimal)

public static byte ToByte(decimal value)

Parameters

value decimal

Returns

byte

ToByte(double)

public static byte ToByte(double value)

Parameters

value double

Returns

byte

ToByte(short)

public static byte ToByte(short value)

Parameters

value short

Returns

byte

ToByte(int)

public static byte ToByte(int value)

Parameters

value int

Returns

byte

ToByte(long)

public static byte ToByte(long value)

Parameters

value long

Returns

byte

ToByte(object)

public static byte ToByte(object value)

Parameters

value object

Returns

byte

ToByte(object, IFormatProvider)

public static byte ToByte(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

byte

ToByte(sbyte)

public static byte ToByte(sbyte value)

Parameters

value sbyte

Returns

byte

ToByte(float)

public static byte ToByte(float value)

Parameters

value float

Returns

byte

ToByte(string)

public static byte ToByte(string value)

Parameters

value string

Returns

byte

ToByte(string, IFormatProvider)

public static byte ToByte(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

byte

ToByte(ushort)

public static byte ToByte(ushort value)

Parameters

value ushort

Returns

byte

ToByte(uint)

public static byte ToByte(uint value)

Parameters

value uint

Returns

byte

ToByte(ulong)

public static byte ToByte(ulong value)

Parameters

value ulong

Returns

byte

ToChar(NDArray)

public static char ToChar(NDArray nd)

Parameters

nd NDArray

Returns

char

ToChar(bool)

public static char ToChar(bool value)

Parameters

value bool

Returns

char

ToChar(byte)

public static char ToChar(byte value)

Parameters

value byte

Returns

char

ToChar(char)

public static char ToChar(char value)

Parameters

value char

Returns

char

ToChar(DateTime)

public static char ToChar(DateTime value)

Parameters

value DateTime

Returns

char

ToChar(decimal)

public static char ToChar(decimal value)

Parameters

value decimal

Returns

char

ToChar(double)

public static char ToChar(double value)

Parameters

value double

Returns

char

ToChar(short)

public static char ToChar(short value)

Parameters

value short

Returns

char

ToChar(int)

public static char ToChar(int value)

Parameters

value int

Returns

char

ToChar(long)

public static char ToChar(long value)

Parameters

value long

Returns

char

ToChar(object)

public static char ToChar(object value)

Parameters

value object

Returns

char

ToChar(object, IFormatProvider)

public static char ToChar(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

char

ToChar(sbyte)

public static char ToChar(sbyte value)

Parameters

value sbyte

Returns

char

ToChar(float)

public static char ToChar(float value)

Parameters

value float

Returns

char

ToChar(string)

public static char ToChar(string value)

Parameters

value string

Returns

char

ToChar(string, IFormatProvider)

public static char ToChar(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

char

ToChar(ushort)

public static char ToChar(ushort value)

Parameters

value ushort

Returns

char

ToChar(uint)

public static char ToChar(uint value)

Parameters

value uint

Returns

char

ToChar(ulong)

public static char ToChar(ulong value)

Parameters

value ulong

Returns

char

ToDateTime(bool)

public static DateTime ToDateTime(bool value)

Parameters

value bool

Returns

DateTime

ToDateTime(byte)

public static DateTime ToDateTime(byte value)

Parameters

value byte

Returns

DateTime

ToDateTime(char)

public static DateTime ToDateTime(char value)

Parameters

value char

Returns

DateTime

ToDateTime(DateTime)

public static DateTime ToDateTime(DateTime value)

Parameters

value DateTime

Returns

DateTime

ToDateTime(decimal)

public static DateTime ToDateTime(decimal value)

Parameters

value decimal

Returns

DateTime

ToDateTime(double)

public static DateTime ToDateTime(double value)

Parameters

value double

Returns

DateTime

ToDateTime(short)

public static DateTime ToDateTime(short value)

Parameters

value short

Returns

DateTime

ToDateTime(int)

public static DateTime ToDateTime(int value)

Parameters

value int

Returns

DateTime

ToDateTime(long)

public static DateTime ToDateTime(long value)

Parameters

value long

Returns

DateTime

ToDateTime(object)

public static DateTime ToDateTime(object value)

Parameters

value object

Returns

DateTime

ToDateTime(object, IFormatProvider)

public static DateTime ToDateTime(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

DateTime

ToDateTime(sbyte)

public static DateTime ToDateTime(sbyte value)

Parameters

value sbyte

Returns

DateTime

ToDateTime(float)

public static DateTime ToDateTime(float value)

Parameters

value float

Returns

DateTime

ToDateTime(string)

public static DateTime ToDateTime(string value)

Parameters

value string

Returns

DateTime

ToDateTime(string, IFormatProvider)

public static DateTime ToDateTime(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

DateTime

ToDateTime(ushort)

public static DateTime ToDateTime(ushort value)

Parameters

value ushort

Returns

DateTime

ToDateTime(uint)

public static DateTime ToDateTime(uint value)

Parameters

value uint

Returns

DateTime

ToDateTime(ulong)

public static DateTime ToDateTime(ulong value)

Parameters

value ulong

Returns

DateTime

ToDecimal(NDArray)

public static decimal ToDecimal(NDArray nd)

Parameters

nd NDArray

Returns

decimal

ToDecimal(bool)

public static decimal ToDecimal(bool value)

Parameters

value bool

Returns

decimal

ToDecimal(byte)

public static decimal ToDecimal(byte value)

Parameters

value byte

Returns

decimal

ToDecimal(char)

public static decimal ToDecimal(char value)

Parameters

value char

Returns

decimal

ToDecimal(DateTime)

public static decimal ToDecimal(DateTime value)

Parameters

value DateTime

Returns

decimal

ToDecimal(decimal)

public static decimal ToDecimal(decimal value)

Parameters

value decimal

Returns

decimal

ToDecimal(double)

public static decimal ToDecimal(double value)

Parameters

value double

Returns

decimal

ToDecimal(short)

public static decimal ToDecimal(short value)

Parameters

value short

Returns

decimal

ToDecimal(int)

public static decimal ToDecimal(int value)

Parameters

value int

Returns

decimal

ToDecimal(long)

public static decimal ToDecimal(long value)

Parameters

value long

Returns

decimal

ToDecimal(object)

public static decimal ToDecimal(object value)

Parameters

value object

Returns

decimal

ToDecimal(object, IFormatProvider)

public static decimal ToDecimal(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

decimal

ToDecimal(sbyte)

public static decimal ToDecimal(sbyte value)

Parameters

value sbyte

Returns

decimal

ToDecimal(float)

public static decimal ToDecimal(float value)

Parameters

value float

Returns

decimal

ToDecimal(string)

public static decimal ToDecimal(string value)

Parameters

value string

Returns

decimal

ToDecimal(string, IFormatProvider)

public static decimal ToDecimal(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

decimal

ToDecimal(ushort)

public static decimal ToDecimal(ushort value)

Parameters

value ushort

Returns

decimal

ToDecimal(uint)

public static decimal ToDecimal(uint value)

Parameters

value uint

Returns

decimal

ToDecimal(ulong)

public static decimal ToDecimal(ulong value)

Parameters

value ulong

Returns

decimal

ToDouble(NDArray)

public static double ToDouble(NDArray nd)

Parameters

nd NDArray

Returns

double

ToDouble(bool)

public static double ToDouble(bool value)

Parameters

value bool

Returns

double

ToDouble(byte)

public static double ToDouble(byte value)

Parameters

value byte

Returns

double

ToDouble(char)

public static double ToDouble(char value)

Parameters

value char

Returns

double

ToDouble(DateTime)

public static double ToDouble(DateTime value)

Parameters

value DateTime

Returns

double

ToDouble(decimal)

public static double ToDouble(decimal value)

Parameters

value decimal

Returns

double

ToDouble(double)

public static double ToDouble(double value)

Parameters

value double

Returns

double

ToDouble(short)

public static double ToDouble(short value)

Parameters

value short

Returns

double

ToDouble(int)

public static double ToDouble(int value)

Parameters

value int

Returns

double

ToDouble(long)

public static double ToDouble(long value)

Parameters

value long

Returns

double

ToDouble(object)

public static double ToDouble(object value)

Parameters

value object

Returns

double

ToDouble(object, IFormatProvider)

public static double ToDouble(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

double

ToDouble(sbyte)

public static double ToDouble(sbyte value)

Parameters

value sbyte

Returns

double

ToDouble(float)

public static double ToDouble(float value)

Parameters

value float

Returns

double

ToDouble(string)

public static double ToDouble(string value)

Parameters

value string

Returns

double

ToDouble(string, IFormatProvider)

public static double ToDouble(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

double

ToDouble(ushort)

public static double ToDouble(ushort value)

Parameters

value ushort

Returns

double

ToDouble(uint)

public static double ToDouble(uint value)

Parameters

value uint

Returns

double

ToDouble(ulong)

public static double ToDouble(ulong value)

Parameters

value ulong

Returns

double

ToInt16(NDArray)

public static short ToInt16(NDArray nd)

Parameters

nd NDArray

Returns

short

ToInt16(bool)

public static short ToInt16(bool value)

Parameters

value bool

Returns

short

ToInt16(byte)

public static short ToInt16(byte value)

Parameters

value byte

Returns

short

ToInt16(char)

public static short ToInt16(char value)

Parameters

value char

Returns

short

ToInt16(DateTime)

public static short ToInt16(DateTime value)

Parameters

value DateTime

Returns

short

ToInt16(decimal)

public static short ToInt16(decimal value)

Parameters

value decimal

Returns

short

ToInt16(double)

public static short ToInt16(double value)

Parameters

value double

Returns

short

ToInt16(short)

public static short ToInt16(short value)

Parameters

value short

Returns

short

ToInt16(int)

public static short ToInt16(int value)

Parameters

value int

Returns

short

ToInt16(long)

public static short ToInt16(long value)

Parameters

value long

Returns

short

ToInt16(object)

public static short ToInt16(object value)

Parameters

value object

Returns

short

ToInt16(object, IFormatProvider)

public static short ToInt16(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

short

ToInt16(sbyte)

public static short ToInt16(sbyte value)

Parameters

value sbyte

Returns

short

ToInt16(float)

public static short ToInt16(float value)

Parameters

value float

Returns

short

ToInt16(string)

public static short ToInt16(string value)

Parameters

value string

Returns

short

ToInt16(string, IFormatProvider)

public static short ToInt16(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

short

ToInt16(ushort)

public static short ToInt16(ushort value)

Parameters

value ushort

Returns

short

ToInt16(uint)

public static short ToInt16(uint value)

Parameters

value uint

Returns

short

ToInt16(ulong)

public static short ToInt16(ulong value)

Parameters

value ulong

Returns

short

ToInt32(NDArray)

public static int ToInt32(NDArray nd)

Parameters

nd NDArray

Returns

int

ToInt32(bool)

public static int ToInt32(bool value)

Parameters

value bool

Returns

int

ToInt32(byte)

public static int ToInt32(byte value)

Parameters

value byte

Returns

int

ToInt32(char)

public static int ToInt32(char value)

Parameters

value char

Returns

int

ToInt32(DateTime)

public static int ToInt32(DateTime value)

Parameters

value DateTime

Returns

int

ToInt32(decimal)

public static int ToInt32(decimal value)

Parameters

value decimal

Returns

int

ToInt32(double)

public static int ToInt32(double value)

Parameters

value double

Returns

int

ToInt32(short)

public static int ToInt32(short value)

Parameters

value short

Returns

int

ToInt32(int)

public static int ToInt32(int value)

Parameters

value int

Returns

int

ToInt32(long)

public static int ToInt32(long value)

Parameters

value long

Returns

int

ToInt32(object)

public static int ToInt32(object value)

Parameters

value object

Returns

int

ToInt32(object, IFormatProvider)

public static int ToInt32(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

int

ToInt32(sbyte)

public static int ToInt32(sbyte value)

Parameters

value sbyte

Returns

int

ToInt32(float)

public static int ToInt32(float value)

Parameters

value float

Returns

int

ToInt32(string)

public static int ToInt32(string value)

Parameters

value string

Returns

int

ToInt32(string, IFormatProvider)

public static int ToInt32(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

int

ToInt32(ushort)

public static int ToInt32(ushort value)

Parameters

value ushort

Returns

int

ToInt32(uint)

public static int ToInt32(uint value)

Parameters

value uint

Returns

int

ToInt32(ulong)

public static int ToInt32(ulong value)

Parameters

value ulong

Returns

int

ToInt64(NDArray)

public static long ToInt64(NDArray nd)

Parameters

nd NDArray

Returns

long

ToInt64(bool)

public static long ToInt64(bool value)

Parameters

value bool

Returns

long

ToInt64(byte)

public static long ToInt64(byte value)

Parameters

value byte

Returns

long

ToInt64(char)

public static long ToInt64(char value)

Parameters

value char

Returns

long

ToInt64(DateTime)

public static long ToInt64(DateTime value)

Parameters

value DateTime

Returns

long

ToInt64(decimal)

public static long ToInt64(decimal value)

Parameters

value decimal

Returns

long

ToInt64(double)

public static long ToInt64(double value)

Parameters

value double

Returns

long

ToInt64(short)

public static long ToInt64(short value)

Parameters

value short

Returns

long

ToInt64(int)

public static long ToInt64(int value)

Parameters

value int

Returns

long

ToInt64(long)

public static long ToInt64(long value)

Parameters

value long

Returns

long

ToInt64(object)

public static long ToInt64(object value)

Parameters

value object

Returns

long

ToInt64(object, IFormatProvider)

public static long ToInt64(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

long

ToInt64(sbyte)

public static long ToInt64(sbyte value)

Parameters

value sbyte

Returns

long

ToInt64(float)

public static long ToInt64(float value)

Parameters

value float

Returns

long

ToInt64(string)

public static long ToInt64(string value)

Parameters

value string

Returns

long

ToInt64(string, IFormatProvider)

public static long ToInt64(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

long

ToInt64(ushort)

public static long ToInt64(ushort value)

Parameters

value ushort

Returns

long

ToInt64(uint)

public static long ToInt64(uint value)

Parameters

value uint

Returns

long

ToInt64(ulong)

public static long ToInt64(ulong value)

Parameters

value ulong

Returns

long

ToSByte(bool)

public static sbyte ToSByte(bool value)

Parameters

value bool

Returns

sbyte

ToSByte(byte)

public static sbyte ToSByte(byte value)

Parameters

value byte

Returns

sbyte

ToSByte(char)

public static sbyte ToSByte(char value)

Parameters

value char

Returns

sbyte

ToSByte(DateTime)

public static sbyte ToSByte(DateTime value)

Parameters

value DateTime

Returns

sbyte

ToSByte(decimal)

public static sbyte ToSByte(decimal value)

Parameters

value decimal

Returns

sbyte

ToSByte(double)

public static sbyte ToSByte(double value)

Parameters

value double

Returns

sbyte

ToSByte(short)

public static sbyte ToSByte(short value)

Parameters

value short

Returns

sbyte

ToSByte(int)

public static sbyte ToSByte(int value)

Parameters

value int

Returns

sbyte

ToSByte(long)

public static sbyte ToSByte(long value)

Parameters

value long

Returns

sbyte

ToSByte(object)

public static sbyte ToSByte(object value)

Parameters

value object

Returns

sbyte

ToSByte(object, IFormatProvider)

public static sbyte ToSByte(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

sbyte

ToSByte(sbyte)

public static sbyte ToSByte(sbyte value)

Parameters

value sbyte

Returns

sbyte

ToSByte(float)

public static sbyte ToSByte(float value)

Parameters

value float

Returns

sbyte

ToSByte(string)

public static sbyte ToSByte(string value)

Parameters

value string

Returns

sbyte

ToSByte(string, IFormatProvider)

public static sbyte ToSByte(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

sbyte

ToSByte(ushort)

public static sbyte ToSByte(ushort value)

Parameters

value ushort

Returns

sbyte

ToSByte(uint)

public static sbyte ToSByte(uint value)

Parameters

value uint

Returns

sbyte

ToSByte(ulong)

public static sbyte ToSByte(ulong value)

Parameters

value ulong

Returns

sbyte

ToSingle(NDArray)

public static float ToSingle(NDArray nd)

Parameters

nd NDArray

Returns

float

ToSingle(bool)

public static float ToSingle(bool value)

Parameters

value bool

Returns

float

ToSingle(byte)

public static float ToSingle(byte value)

Parameters

value byte

Returns

float

ToSingle(char)

public static float ToSingle(char value)

Parameters

value char

Returns

float

ToSingle(DateTime)

public static float ToSingle(DateTime value)

Parameters

value DateTime

Returns

float

ToSingle(decimal)

public static float ToSingle(decimal value)

Parameters

value decimal

Returns

float

ToSingle(double)

public static float ToSingle(double value)

Parameters

value double

Returns

float

ToSingle(short)

public static float ToSingle(short value)

Parameters

value short

Returns

float

ToSingle(int)

public static float ToSingle(int value)

Parameters

value int

Returns

float

ToSingle(long)

public static float ToSingle(long value)

Parameters

value long

Returns

float

ToSingle(object)

public static float ToSingle(object value)

Parameters

value object

Returns

float

ToSingle(object, IFormatProvider)

public static float ToSingle(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

float

ToSingle(sbyte)

public static float ToSingle(sbyte value)

Parameters

value sbyte

Returns

float

ToSingle(float)

public static float ToSingle(float value)

Parameters

value float

Returns

float

ToSingle(string)

public static float ToSingle(string value)

Parameters

value string

Returns

float

ToSingle(string, IFormatProvider)

public static float ToSingle(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

float

ToSingle(ushort)

public static float ToSingle(ushort value)

Parameters

value ushort

Returns

float

ToSingle(uint)

public static float ToSingle(uint value)

Parameters

value uint

Returns

float

ToSingle(ulong)

public static float ToSingle(ulong value)

Parameters

value ulong

Returns

float

ToString(bool)

public static string ToString(bool value)

Parameters

value bool

Returns

string

ToString(bool, IFormatProvider)

public static string ToString(bool value, IFormatProvider provider)

Parameters

value bool
provider IFormatProvider

Returns

string

ToString(byte)

public static string ToString(byte value)

Parameters

value byte

Returns

string

ToString(byte, IFormatProvider)

public static string ToString(byte value, IFormatProvider provider)

Parameters

value byte
provider IFormatProvider

Returns

string

ToString(char)

public static string ToString(char value)

Parameters

value char

Returns

string

ToString(char, IFormatProvider)

public static string ToString(char value, IFormatProvider provider)

Parameters

value char
provider IFormatProvider

Returns

string

ToString(DateTime)

public static string ToString(DateTime value)

Parameters

value DateTime

Returns

string

ToString(DateTime, IFormatProvider)

public static string ToString(DateTime value, IFormatProvider provider)

Parameters

value DateTime
provider IFormatProvider

Returns

string

ToString(decimal)

public static string ToString(decimal value)

Parameters

value decimal

Returns

string

ToString(decimal, IFormatProvider)

public static string ToString(decimal value, IFormatProvider provider)

Parameters

value decimal
provider IFormatProvider

Returns

string

ToString(double)

public static string ToString(double value)

Parameters

value double

Returns

string

ToString(double, IFormatProvider)

public static string ToString(double value, IFormatProvider provider)

Parameters

value double
provider IFormatProvider

Returns

string

ToString(short)

public static string ToString(short value)

Parameters

value short

Returns

string

ToString(short, IFormatProvider)

public static string ToString(short value, IFormatProvider provider)

Parameters

value short
provider IFormatProvider

Returns

string

ToString(int)

public static string ToString(int value)

Parameters

value int

Returns

string

ToString(int, IFormatProvider)

public static string ToString(int value, IFormatProvider provider)

Parameters

value int
provider IFormatProvider

Returns

string

ToString(long)

public static string ToString(long value)

Parameters

value long

Returns

string

ToString(long, IFormatProvider)

public static string ToString(long value, IFormatProvider provider)

Parameters

value long
provider IFormatProvider

Returns

string

ToString(object)

public static string ToString(object value)

Parameters

value object

Returns

string

ToString(object, IFormatProvider)

public static string ToString(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

string

ToString(sbyte)

public static string ToString(sbyte value)

Parameters

value sbyte

Returns

string

ToString(sbyte, IFormatProvider)

public static string ToString(sbyte value, IFormatProvider provider)

Parameters

value sbyte
provider IFormatProvider

Returns

string

ToString(float)

public static string ToString(float value)

Parameters

value float

Returns

string

ToString(float, IFormatProvider)

public static string ToString(float value, IFormatProvider provider)

Parameters

value float
provider IFormatProvider

Returns

string

ToString(string)

public static string ToString(string value)

Parameters

value string

Returns

string

ToString(string, IFormatProvider)

public static string ToString(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

string

ToString(ushort)

public static string ToString(ushort value)

Parameters

value ushort

Returns

string

ToString(ushort, IFormatProvider)

public static string ToString(ushort value, IFormatProvider provider)

Parameters

value ushort
provider IFormatProvider

Returns

string

ToString(uint)

public static string ToString(uint value)

Parameters

value uint

Returns

string

ToString(uint, IFormatProvider)

public static string ToString(uint value, IFormatProvider provider)

Parameters

value uint
provider IFormatProvider

Returns

string

ToString(ulong)

public static string ToString(ulong value)

Parameters

value ulong

Returns

string

ToString(ulong, IFormatProvider)

public static string ToString(ulong value, IFormatProvider provider)

Parameters

value ulong
provider IFormatProvider

Returns

string

ToUInt16(NDArray)

public static ushort ToUInt16(NDArray nd)

Parameters

nd NDArray

Returns

ushort

ToUInt16(bool)

public static ushort ToUInt16(bool value)

Parameters

value bool

Returns

ushort

ToUInt16(byte)

public static ushort ToUInt16(byte value)

Parameters

value byte

Returns

ushort

ToUInt16(char)

public static ushort ToUInt16(char value)

Parameters

value char

Returns

ushort

ToUInt16(DateTime)

public static ushort ToUInt16(DateTime value)

Parameters

value DateTime

Returns

ushort

ToUInt16(decimal)

public static ushort ToUInt16(decimal value)

Parameters

value decimal

Returns

ushort

ToUInt16(double)

public static ushort ToUInt16(double value)

Parameters

value double

Returns

ushort

ToUInt16(short)

public static ushort ToUInt16(short value)

Parameters

value short

Returns

ushort

ToUInt16(int)

public static ushort ToUInt16(int value)

Parameters

value int

Returns

ushort

ToUInt16(long)

public static ushort ToUInt16(long value)

Parameters

value long

Returns

ushort

ToUInt16(object)

public static ushort ToUInt16(object value)

Parameters

value object

Returns

ushort

ToUInt16(object, IFormatProvider)

public static ushort ToUInt16(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

ushort

ToUInt16(sbyte)

public static ushort ToUInt16(sbyte value)

Parameters

value sbyte

Returns

ushort

ToUInt16(float)

public static ushort ToUInt16(float value)

Parameters

value float

Returns

ushort

ToUInt16(string)

public static ushort ToUInt16(string value)

Parameters

value string

Returns

ushort

ToUInt16(string, IFormatProvider)

public static ushort ToUInt16(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

ushort

ToUInt16(ushort)

public static ushort ToUInt16(ushort value)

Parameters

value ushort

Returns

ushort

ToUInt16(uint)

public static ushort ToUInt16(uint value)

Parameters

value uint

Returns

ushort

ToUInt16(ulong)

public static ushort ToUInt16(ulong value)

Parameters

value ulong

Returns

ushort

ToUInt32(NDArray)

public static uint ToUInt32(NDArray nd)

Parameters

nd NDArray

Returns

uint

ToUInt32(bool)

public static uint ToUInt32(bool value)

Parameters

value bool

Returns

uint

ToUInt32(byte)

public static uint ToUInt32(byte value)

Parameters

value byte

Returns

uint

ToUInt32(char)

public static uint ToUInt32(char value)

Parameters

value char

Returns

uint

ToUInt32(DateTime)

public static uint ToUInt32(DateTime value)

Parameters

value DateTime

Returns

uint

ToUInt32(decimal)

public static uint ToUInt32(decimal value)

Parameters

value decimal

Returns

uint

ToUInt32(double)

public static uint ToUInt32(double value)

Parameters

value double

Returns

uint

ToUInt32(short)

public static uint ToUInt32(short value)

Parameters

value short

Returns

uint

ToUInt32(int)

public static uint ToUInt32(int value)

Parameters

value int

Returns

uint

ToUInt32(long)

public static uint ToUInt32(long value)

Parameters

value long

Returns

uint

ToUInt32(object)

public static uint ToUInt32(object value)

Parameters

value object

Returns

uint

ToUInt32(object, IFormatProvider)

public static uint ToUInt32(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

uint

ToUInt32(sbyte)

public static uint ToUInt32(sbyte value)

Parameters

value sbyte

Returns

uint

ToUInt32(float)

public static uint ToUInt32(float value)

Parameters

value float

Returns

uint

ToUInt32(string)

public static uint ToUInt32(string value)

Parameters

value string

Returns

uint

ToUInt32(string, IFormatProvider)

public static uint ToUInt32(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

uint

ToUInt32(ushort)

public static uint ToUInt32(ushort value)

Parameters

value ushort

Returns

uint

ToUInt32(uint)

public static uint ToUInt32(uint value)

Parameters

value uint

Returns

uint

ToUInt32(ulong)

public static uint ToUInt32(ulong value)

Parameters

value ulong

Returns

uint

ToUInt64(NDArray)

public static ulong ToUInt64(NDArray nd)

Parameters

nd NDArray

Returns

ulong

ToUInt64(bool)

public static ulong ToUInt64(bool value)

Parameters

value bool

Returns

ulong

ToUInt64(byte)

public static ulong ToUInt64(byte value)

Parameters

value byte

Returns

ulong

ToUInt64(char)

public static ulong ToUInt64(char value)

Parameters

value char

Returns

ulong

ToUInt64(DateTime)

public static ulong ToUInt64(DateTime value)

Parameters

value DateTime

Returns

ulong

ToUInt64(decimal)

public static ulong ToUInt64(decimal value)

Parameters

value decimal

Returns

ulong

ToUInt64(double)

public static ulong ToUInt64(double value)

Parameters

value double

Returns

ulong

ToUInt64(short)

public static ulong ToUInt64(short value)

Parameters

value short

Returns

ulong

ToUInt64(int)

public static ulong ToUInt64(int value)

Parameters

value int

Returns

ulong

ToUInt64(long)

public static ulong ToUInt64(long value)

Parameters

value long

Returns

ulong

ToUInt64(object)

public static ulong ToUInt64(object value)

Parameters

value object

Returns

ulong

ToUInt64(object, IFormatProvider)

public static ulong ToUInt64(object value, IFormatProvider provider)

Parameters

value object
provider IFormatProvider

Returns

ulong

ToUInt64(sbyte)

public static ulong ToUInt64(sbyte value)

Parameters

value sbyte

Returns

ulong

ToUInt64(float)

public static ulong ToUInt64(float value)

Parameters

value float

Returns

ulong

ToUInt64(string)

public static ulong ToUInt64(string value)

Parameters

value string

Returns

ulong

ToUInt64(string, IFormatProvider)

public static ulong ToUInt64(string value, IFormatProvider provider)

Parameters

value string
provider IFormatProvider

Returns

ulong

ToUInt64(ushort)

public static ulong ToUInt64(ushort value)

Parameters

value ushort

Returns

ulong

ToUInt64(uint)

public static ulong ToUInt64(uint value)

Parameters

value uint

Returns

ulong

ToUInt64(ulong)

public static ulong ToUInt64(ulong value)

Parameters

value ulong

Returns

ulong