ValueMapping<TSource, TDestination>.TryMap Method |
Maps the specified source value to an instance of the specified destination type.
Namespace:
TB.ComponentModel
Assembly:
UniversalTypeConverter (in UniversalTypeConverter.dll) Version: 2.0.0
Syntaxpublic bool TryMap(
Object sourceValue,
Type destinationType,
out Object destinationValue
)
Parameters
- sourceValue
- Type: System.Object
The value to map. - destinationType
- Type: System.Type
The destination type to map to. - destinationValue
- Type: System.Object
An instance of the specified destination type if the mapping succeeded.
Return Value
Type:
Booleantrue if the mapping succeeded; otherwise, false.
Implements
IValueMapping.TryMap(Object, Type, Object)
See Also