CustomReflectionBinder.ChangeType Method |
Namespace: PostSharp.Reflection
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public override Object ChangeType( Object value, Type type, CultureInfo culture )
Parameters
- value
- Type: System.Object
The object to change into a new Type. - type
- Type: System.Type
The new Type that value will become. - culture
- Type: System.Globalization.CultureInfo
An instance of CultureInfo that is used to control the coercion of data types. If culture is null, the CultureInfo for the current thread is used.Note For example, this parameter is necessary to convert a String that represents 1000 to a Double value, because 1000 is represented differently by different cultures.
Return Value
Type: ObjectAn object that contains the given value as the new type.