C# Class MsgPack.Compiler.DictionaryILGenerator

Datei anzeigen Open project: e-travel/msgpack

Public Methods

Method Description
EmitPack ( ILGenerator gen, Type type, Type currentType, MethodInfo currentMethod, MethodInfo>.Func lookupPackMethod ) : void
EmitPackIL ( MethodInfo currentMethod, ILGenerator gen, Type type, MsgPack.Compiler.Variable arg_writer, MsgPack.Compiler.Variable arg_obj, MethodInfo>.Func lookupPackMethod ) : void

Emits IL code to pack a Map based on IDictionary.

EmitUnpackIL ( Type mapType, MethodInfo mi, ILGenerator il, MemberInfo[]>.Func targetMemberSelector, string>.Func memberNameFormatter, MethodInfo>.Func lookupUnpackMethod ) : void

Method Details

EmitPack() public static method

public static EmitPack ( ILGenerator gen, Type type, Type currentType, MethodInfo currentMethod, MethodInfo>.Func lookupPackMethod ) : void
gen System.Reflection.Emit.ILGenerator
type System.Type
currentType System.Type
currentMethod System.Reflection.MethodInfo
lookupPackMethod MethodInfo>.Func
return void

EmitPackIL() public static method

Emits IL code to pack a Map based on IDictionary.
public static EmitPackIL ( MethodInfo currentMethod, ILGenerator gen, Type type, MsgPack.Compiler.Variable arg_writer, MsgPack.Compiler.Variable arg_obj, MethodInfo>.Func lookupPackMethod ) : void
currentMethod System.Reflection.MethodInfo Current method info.
gen System.Reflection.Emit.ILGenerator il buffer/generator
type System.Type Current type
arg_writer MsgPack.Compiler.Variable packer object
arg_obj MsgPack.Compiler.Variable current object
lookupPackMethod MethodInfo>.Func dictionary to look for methods
return void

EmitUnpackIL() public static method

public static EmitUnpackIL ( Type mapType, MethodInfo mi, ILGenerator il, MemberInfo[]>.Func targetMemberSelector, string>.Func memberNameFormatter, MethodInfo>.Func lookupUnpackMethod ) : void
mapType System.Type
mi System.Reflection.MethodInfo
il System.Reflection.Emit.ILGenerator
targetMemberSelector MemberInfo[]>.Func
memberNameFormatter string>.Func
lookupUnpackMethod MethodInfo>.Func
return void