C# Class Castle.DynamicProxy.Builder.CodeBuilder.Utils.OpCodeUtil

Summary description for OpCodeUtil.
Afficher le fichier Open project: nats/castle-1.0.3-mono

Méthodes publiques

Méthode Description
EmitLoadIndirectOpCodeForType ( ILGenerator gen, Type type ) : void

Emits a load indirect opcode of the appropriate type for a value or object reference. Pops a pointer off the evaluation stack, dereferences it and loads a value of the specified type.

EmitLoadOpCodeForConstantValue ( ILGenerator gen, object value ) : void

Emits a load opcode of the appropriate kind for a constant string or primitive value.

EmitLoadOpCodeForDefaultValueOfType ( ILGenerator gen, Type type ) : void

Emits a load opcode of the appropriate kind for the constant default value of a type, such as 0 for value types and null for reference types.

EmitStoreIndirectOpCodeForType ( ILGenerator gen, Type type ) : void

Emits a store indirectopcode of the appropriate type for a value or object reference. Pops a value of the specified type and a pointer off the evaluation stack, and stores the value.

Private Methods

Méthode Description
GetUnderlyingTypeOfEnum ( Type enumType ) : Type

Method Details

EmitLoadIndirectOpCodeForType() public static méthode

Emits a load indirect opcode of the appropriate type for a value or object reference. Pops a pointer off the evaluation stack, dereferences it and loads a value of the specified type.
public static EmitLoadIndirectOpCodeForType ( ILGenerator gen, Type type ) : void
gen System.Reflection.Emit.ILGenerator
type System.Type
Résultat void

EmitLoadOpCodeForConstantValue() public static méthode

Emits a load opcode of the appropriate kind for a constant string or primitive value.
public static EmitLoadOpCodeForConstantValue ( ILGenerator gen, object value ) : void
gen System.Reflection.Emit.ILGenerator
value object
Résultat void

EmitLoadOpCodeForDefaultValueOfType() public static méthode

Emits a load opcode of the appropriate kind for the constant default value of a type, such as 0 for value types and null for reference types.
public static EmitLoadOpCodeForDefaultValueOfType ( ILGenerator gen, Type type ) : void
gen System.Reflection.Emit.ILGenerator
type System.Type
Résultat void

EmitStoreIndirectOpCodeForType() public static méthode

Emits a store indirectopcode of the appropriate type for a value or object reference. Pops a value of the specified type and a pointer off the evaluation stack, and stores the value.
public static EmitStoreIndirectOpCodeForType ( ILGenerator gen, Type type ) : void
gen System.Reflection.Emit.ILGenerator
type System.Type
Résultat void