C# Class NCop.Weaving.Extensions.ILGeneratorExtensions

Exibir arquivo Open project: sagifogel/NCop

Public Methods

Method Description
EmitCastIfNeeded ( this ilGenerator, Type sourceTarget, Type targetType ) : void
EmitConversion ( this iLGenerator, Type to, Type from ) : void
EmitLoadArg ( this ilGenerator, int arg ) : void
EmitLoadElementByType ( this iLGenerator, Type type ) : void
EmitLoadLocal ( this iLGenerator, LocalBuilder localBuilder, bool loadAddress = false ) : void
EmitLoadLocalAddress ( this iLGenerator, LocalBuilder localBuilder ) : void
EmitPrimitiveByTypeCode ( this iLGenerator, object value, TypeCode typeCode ) : void
EmitPushInteger ( this iLGenerator, int value ) : void
EmitStoreArgument ( this iLGenerator, int index ) : void
EmitStoreLocal ( this iLGenerator, LocalBuilder localBuilder ) : void

Private Methods

Method Description
EmitLoadLocalShortForm ( this iLGenerator, LocalBuilder localBuilder ) : void
EmitPushIntegerShortTerm ( this iLGenerator, int value ) : void
EmitStoreLocalShortTerm ( this iLGenerator, LocalBuilder localBuilder ) : void
PushIntegerOpCode ( this ilGenerator, long value ) : void
PushIntegerOpCode ( this ilGenerator, ulong value ) : void

Method Details

EmitCastIfNeeded() public static method

public static EmitCastIfNeeded ( this ilGenerator, Type sourceTarget, Type targetType ) : void
ilGenerator this
sourceTarget System.Type
targetType System.Type
return void

EmitConversion() public static method

public static EmitConversion ( this iLGenerator, Type to, Type from ) : void
iLGenerator this
to System.Type
from System.Type
return void

EmitLoadArg() public static method

public static EmitLoadArg ( this ilGenerator, int arg ) : void
ilGenerator this
arg int
return void

EmitLoadElementByType() public static method

public static EmitLoadElementByType ( this iLGenerator, Type type ) : void
iLGenerator this
type System.Type
return void

EmitLoadLocal() public static method

public static EmitLoadLocal ( this iLGenerator, LocalBuilder localBuilder, bool loadAddress = false ) : void
iLGenerator this
localBuilder System.Reflection.Emit.LocalBuilder
loadAddress bool
return void

EmitLoadLocalAddress() public static method

public static EmitLoadLocalAddress ( this iLGenerator, LocalBuilder localBuilder ) : void
iLGenerator this
localBuilder System.Reflection.Emit.LocalBuilder
return void

EmitPrimitiveByTypeCode() public static method

public static EmitPrimitiveByTypeCode ( this iLGenerator, object value, TypeCode typeCode ) : void
iLGenerator this
value object
typeCode TypeCode
return void

EmitPushInteger() public static method

public static EmitPushInteger ( this iLGenerator, int value ) : void
iLGenerator this
value int
return void

EmitStoreArgument() public static method

public static EmitStoreArgument ( this iLGenerator, int index ) : void
iLGenerator this
index int
return void

EmitStoreLocal() public static method

public static EmitStoreLocal ( this iLGenerator, LocalBuilder localBuilder ) : void
iLGenerator this
localBuilder System.Reflection.Emit.LocalBuilder
return void