Hello guys,
Is there anything similar to Reflection.Emit.DynamicMethod in Cecil? Thanks.
- DynamicMethod
Edit:
What about for the following things?
- EmitCall (e.g.
IL.EmitCall(OpCodes.Callvirt, GetBuildKey, null); IL.Emit(OpCodes.Unbox_Any, dependencyType); ) - LocalBuilder (e.g. LocalBuilder resolving = ilContext.IL.DeclareLocal(typeof(bool));)
- System.Reflection.Emit.Label (e.g. Label existingObjectNotNull = buildContext.IL.DefineLabel();) //Do I have to use TextMap?
- ILGenerator.BeginCatchBlock (e.g. ilContext.IL.BeginCatchBlock(typeof(Exception)); )
- ILGenerator.MarkLabel (e.g. ilContext.IL.MarkLabel(parameterResolveFailed); )
- ILGenerator.EndExceptionBlock() (e.g. ilContext.IL.EndExceptionBlock(); )