Table of Contents

Method CreateLocal

Namespace
MonoMod.Cil
Assembly
MonoMod.Utils.dll

CreateLocal<T>()

Creates a new local variable of type T and returns its definition.
public VariableDefinition CreateLocal<T>()

Returns

VariableDefinition
The VariableDefinition of the local.

Type Parameters

T
The type of the local variable to create.

CreateLocal(Type)

Creates a new local variable of type and returns its definition.
public VariableDefinition CreateLocal(Type type)

Parameters

type Type
The type of the local variable to create.

Returns

VariableDefinition
The VariableDefinition of the local.

CreateLocal(TypeReference)

Creates a new local variable with typeRef and returns its definition.
public VariableDefinition CreateLocal(TypeReference typeRef)

Parameters

typeRef TypeReference
The TypeReference of the type for the local variable to create.

Returns

VariableDefinition
The VariableDefinition of the local.