dynamiclua icon indicating copy to clipboard operation
dynamiclua copied to clipboard

pairs() does not work for C# objects

Open nrother opened this issue 11 years ago • 0 comments

pairs() iterates over all key inside a tables. Since C# objects are userdata, pairs does not work. These is a metamethod called __pairs so it ~~should~~ might be possible to add support for pairs to C# objects.

The problem is, that such object are not modified by DynamicLua, maybe this change has to be done in NLua.

nrother avatar Aug 26 '14 16:08 nrother