From 6872058571fff26386ab7fcf9ac497e1b651a42a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Wed, 18 Jan 2017 15:19:37 +0100 Subject: [PATCH] 'this' keyword in compiled handler --- src/CompilerServices/CompilerServices.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs index e0d6c1e0..e2c657ce 100644 --- a/src/CompilerServices/CompilerServices.cs +++ b/src/CompilerServices/CompilerServices.cs @@ -667,6 +667,8 @@ namespace Crow il.Emit (OpCodes.Ldstr, strcst); + }else if (string.Equals(rop,"this",StringComparison.OrdinalIgnoreCase)){ + il.Emit (OpCodes.Ldarg_0); //load sender ref onto the stack } else { if (lopT.IsEnum) throw new NotImplementedException (); -- 2.47.3