ConversionsChangeType Method (Object, Type, Object, IFormatProvider) |
Converts the input object to a specified typed equivalent. If conversion failed, the specified default value will be used.
Namespace:
ShellBoost.Core.Utilities
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public static Object ChangeType(
Object input,
Type conversionType,
Object defaultValue,
IFormatProvider provider
)
Parameters
- input
- Type: SystemObject
The input. - conversionType
- Type: SystemType
The conversion type. - defaultValue
- Type: SystemObject
The default value. - provider
- Type: SystemIFormatProvider
The format provider.
Return Value
Type:
ObjectThe converted typed value.
See Also