2 using Microsoft
.CSharp
.RuntimeBinder
;
4 using System
.Runtime
.CompilerServices
;
12 public static int Main ()
14 var getter
= CallSite
<Func
<CallSite
, object, object>>.Create (
16 CSharpBinderFlags
.None
, "n", null, new[] {
17 CSharpArgumentInfo
.Create (CSharpArgumentInfoFlags
.None
, null) }));
20 getter
.Target (getter
, new C ());
21 } catch (RuntimeBinderException e
) {
22 if (e
.Message
== "`C' does not contain a definition for `n'")