MaterializerTypeConverter..::..TryConvertType Method
Tries the convert the value into the indicated type.
Namespace:
Tortuga.Chain.MetadataAssembly: 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
- conversionException
- Type: Nullable<(Of <(<'Exception>)>)>%
If an exception occurs when converting, it will be returned here.