c# - Calling Add on List in ExpandoObject throws RuntimeBinderException -


i let visual studio break on clr exceptions. facing weird; following does work, throws exception seems caught internally in .net:

dynamic obj = new expandoobject();  obj.list = new list<object>(); obj.list.add(new { }); // throws runtimebinderexception 

exceptions mean bad happened. there wrong code? or weird little implementation detail can ignored?


Comments

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -