MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsmetaCast
Open sandboxFocus

meta.Cast Method

Cast(IType, Object)

Generates the cast syntax for the specified type.

Declaration
public static dynamic Cast(IType type, dynamic value)
Parameters
Type Name Description
IType type
System.Object value

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

Returns
Type Description
System.Object
See Also