IExecutionContext.

TryConvert<T>(Object, T) Method

Summary

Provides access to the same enhanced type conversion used to convert metadata types.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Execution
Containing Type
IExecutionContext

Syntax

bool TryConvert<T>(Object value, out T result)

Type Parameters

Name Description
T The destination type.

Parameters

Name Type Description
value Object The value to convert.
result T The result of the conversion.

Return Value

Type Description
bool true if the conversion could be completed, false otherwise.
GitHub