Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Dynamic properties added to DynamicObject are undefined

$
0
0
Hi Ron,

To provide scriptable access to the members of a dynamic host object, ClearScript requires that the object provide a correct implementation of GetDynamicMemberNames. In your example, it could look something like this:
publicoverride IEnumerable<string> GetDynamicMemberNames()
{
    returnthis._dict.Keys;
}
Thanks for your question, and good luck!

Viewing all articles
Browse latest Browse all 2297

Trending Articles