Click or drag to resize

ConversionsChangeTypeT Method (Object, T, IFormatProvider)

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
C#
public static T ChangeType<T>(
	Object input,
	T defaultValue,
	IFormatProvider provider
)

Parameters

input
Type: SystemObject
The input.
defaultValue
Type: T
The default value.
provider
Type: SystemIFormatProvider
The format provider.

Type Parameters

T
The expected type.

Return Value

Type: T
The converted typed value.
See Also