C# Class MicroLite.Mapping.ILGeneratorExtensions

Extension methods for the ILGenerator class.
Show file Open project: TrevorPilley/MicroLite

Private Methods

Method Description
EmitBoxIfValueType ( this ilGenerator, Type type ) : void

Emits the box OpCode if the type is a value type.

EmitEfficientInt ( this ilGenerator, int value ) : void

Emits the load integer OpCode using the most efficient method.

EmitUnboxIfValueType ( this ilGenerator, Type type ) : void

Emits the unbox OpCode if the type is a value type.

EmitUnboxOrCast ( this ilGenerator, Type type ) : void

Emits either an unbox OpCode if the type is a value type or a cast to the type.