Mono Class Library: System.Reflection.Binder Overview | Members

System.Reflection.Binder.ChangeType Method

Converts the type of the specified object to the specified type.

public abstract object ChangeType (object value, Type type, System.Globalization.CultureInfo culture)

Parameters

value
The object to be converted to a new Type .
type
The Type to which value is converted.
culture
The only defined value for this parameter is null .

Returns

A new object of the type specified by type . The contents of this object are equal to those of value .

Remarks

Operation
As described above.

Note to Inheritors
Implement this method to change the type of a member of a parameter array. Typically, it is recommended that implementations of this method perform only widening conversions.

Usage
This method is used to change the type of a element in a parameter array to match the type required by the signature of a bound method.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0