[Mono-dev] issue invoking member of ExpandoObject with C# REPL

robr robreiss at hotmail.com
Wed Sep 15 13:50:32 EDT 2010


The following fails when using Mono REPL on ms .Net 4.0:
csharp> using System.Dynamic;
csharp> dynamic d = new ExpandoObject();
csharp> d.test = new Action(delegate() { Console.WriteLine("worked"); });
System.Action
csharp> d.test();
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot implicitly
convert type 'void' to 'object'

I added Bug #639603

Rob
-- 
View this message in context: http://mono.1490590.n4.nabble.com/issue-invoking-member-of-ExpandoObject-with-C-REPL-tp2540929p2540929.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list