Open sandboxFocus

Method Cast

Cast(IType, dynamic?)

Generates the cast syntax for the specified type.

Declaration
public static dynamic? Cast(IType type, dynamic? value)
Parameters
Type Name Description
IType type
dynamic value

Must be explicitly cast to object otherwise the C# compiler will emit an error.

Returns
Type Description
dynamic
See Also