Skip to content

M_CodeJam_Mapping_Converter_ChangeType

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

Converter.ChangeType Method

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

Namespace: CodeJam.Mapping
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0

Syntax

C#

public static Object ChangeType(
	Object value,
	Type conversionType,
	MappingSchema mappingSchema = null
)

VB

Public Shared Function ChangeType ( 
	value As Object,
	conversionType As Type,
	Optional mappingSchema As MappingSchema = Nothing
) As Object

F#

static member ChangeType : 
        value : Object * 
        conversionType : Type * 
        ?mappingSchema : MappingSchema 
(* Defaults:
        let _mappingSchema = defaultArg mappingSchema null
*)
-> Object 

Parameters

 

value
Type: System.Object
An object to convert.
conversionType
Type: System.Type
The type of object to return.
mappingSchema (Optional)
Type: CodeJam.Mapping.MappingSchema
A mapping schema that defines custom converters.

Return Value

Type: Object
An object whose type is conversionType and whose value is equivalent to value.

See Also

Reference

Converter Class
CodeJam.Mapping Namespace

Clone this wiki locally