2 using Microsoft
.CSharp
.RuntimeBinder
;
12 public int Property { get; set; }
14 string this [int index
] {
21 public static dynamic Factory ()
29 public static int Main ()
31 dynamic d
= A
.Factory ();
36 } catch (RuntimeBinderException e
) {
37 if (e
.Message
!= "'object' does not contain a definition for 'Foo'")
44 } catch (RuntimeBinderException e
) {
45 if (e
.Message
!= "'object' does not contain a definition for 'Property'")
52 } catch (RuntimeBinderException e
) {
53 if (e
.Message
!= "Cannot apply indexing with [] to an expression of type 'object'")