X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FMicrosoft.CSharp%2FMicrosoft.CSharp.RuntimeBinder%2FCSharpIsEventBinder.cs;h=e485e40ba146458103eb08f81b26595b616cbdd3;hb=5742335f66bc628ad0ce75be7870127da04916df;hp=3c46c0ff68405030718dddb6c07380d1cc0333cb;hpb=0e419dbf3509887d9a21f11abd276acff44b111a;p=mono.git diff --git a/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpIsEventBinder.cs b/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpIsEventBinder.cs index 3c46c0ff684..e485e40ba14 100644 --- a/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpIsEventBinder.cs +++ b/mcs/class/Microsoft.CSharp/Microsoft.CSharp.RuntimeBinder/CSharpIsEventBinder.cs @@ -52,11 +52,11 @@ namespace Microsoft.CSharp.RuntimeBinder var queried_type = ctx.ImportType (target.LimitType); var rc = new Compiler.ResolveContext (new RuntimeBinderContext (ctx, context_type), 0); - var expr = Compiler.Expression.MemberLookup (rc, context_type, queried_type, + var expr = Compiler.Expression.MemberLookup (rc, false, queried_type, name, 0, Compiler.Expression.MemberLookupRestrictions.ExactArity, Compiler.Location.Null); var binder = new CSharpBinder ( - this, new Compiler.BoolConstant (expr is Compiler.EventExpr, Compiler.Location.Null), null); + this, new Compiler.BoolConstant (ctx.CompilerContext.BuiltinTypes, expr is Compiler.EventExpr, Compiler.Location.Null), null); binder.AddRestrictions (target); return binder.Bind (ctx, callingContext);