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

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -