PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Instruction­Writer Class / Instruction­Writer Methods / Instruction­Writer.​Emit­Convert­To­Object Method

InstructionWriter.EmitConvertToObject Method

Emits MSIL instructions that cast an object of any type to an object (eventually boxed).

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public void EmitConvertToObject(
	ITypeSignature originalType
)

Parameters

originalType
Type: PostSharp.Sdk.CodeModel.ITypeSignature
Type to be converted.
See Also