Skip to content

ConvertValue Method ​

Definition ​

  • Namespace: JASE
  • Assembly: JASE.ReflectionTools.dll

Overloads ​

NameDescription
T ConvertValue(object input)Converts the input object to the specified destination type T.
object ConvertValue(object input, Type destinationType)Converts the input object to the specified destination type.

object ConvertValue(object input, Type destinationType) ​

csharp
object ConvertValue(object input, Type destinationType)

Converts the input object to the specified destination type.

Parameters ​

NameDescription
destinationTypeThe type to convert the object to.
inputThe object to convert.

Returns ​

The converted object.

T ConvertValue(object input) ​

csharp
T ConvertValue(object input)

Converts the input object to the specified destination type T.

Type parameters ​

NameDescription
TThe type to convert the object to.

Parameters ​

NameDescription
inputThe object to convert.

Returns ​

The converted object of type T.