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

InstructionWriter.EmitConvertFromObject Method

Emits MSIL instructions that cast an object (of type Object) to a given type, performing unboxing when needed.

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 EmitConvertFromObject(
	ITypeSignature targetType
)

Parameters

targetType
Type: PostSharp.Sdk.CodeModel.ITypeSignature
Type into which the object has to be converted.
See Also