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
Post a Comment