From: Jean-Philippe Bruyère Date: Wed, 18 Jan 2017 14:19:37 +0000 (+0100) Subject: 'this' keyword in compiled handler X-Git-Tag: v0.5.1~40 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=6872058571fff26386ab7fcf9ac497e1b651a42a;p=jp%2Fcrow.git 'this' keyword in compiled handler --- 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 ();