Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Aspects / meta / Cast

Method Cast

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
Object value

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

Returns
Type Description
Object
See Also