ConversionsChangeTypeT Method (Object, T) |
Converts the input object to a specified typed equivalent. If conversion failed, a 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 T ChangeType<T>(
Object input,
T defaultValue
)
Parameters
- input
- Type: SystemObject
The input. - defaultValue
- Type: T
The default value.
Type Parameters
- T
- The expected type.
Return Value
Type:
TThe converted typed value.
See Also