Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

MaterializerTypeConverter..::..TryConvertType Method

Tries the convert the value into the indicated type.

Namespace:  Tortuga.Chain.Metadata
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


public bool TryConvertType(
	Type targetType,
	ref Nullable<Object> value,
	out Nullable<Exception> conversionException
)
Public Function TryConvertType ( _
	targetType As Type, _
	ByRef value As Nullable(Of Object), _
	<OutAttribute> ByRef conversionException As Nullable(Of Exception) _
) As Boolean
public:
bool^ TryConvertType(
	Type^ targetType, 
	Nullable<Object^>% value, 
	[OutAttribute] Nullable<Exception^>% conversionException
)

Parameters

targetType
Type: Type
Desired type
value
Type: Nullable<(Of <(<'Object>)>)>%
The value to be converted.
conversionException
Type: Nullable<(Of <(<'Exception>)>)>%
If an exception occurs when converting, it will be returned here.

Return Value

true if the conversion was successful, false otherwise.