ConversionToValueOfType(Object, Type, Boolean) Method

Return the caller's value, casted to the specified destination value.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static Object ToValueOfType(
	Object value,
	Type type,
	bool allowNull
)

Parameters

value  Object
The Value to Convert.
type  Type
The Destination Type of the Value.
allowNull  Boolean
Value indicating whether null return value is allowed.

Return Value

Object
Caller's Value, casted to the specified Type.

See Also