Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExpandoObject doesn't work #322

Closed
Revan600 opened this issue Sep 5, 2019 · 3 comments
Closed

ExpandoObject doesn't work #322

Revan600 opened this issue Sep 5, 2019 · 3 comments

Comments

@Revan600
Copy link

Revan600 commented Sep 5, 2019

Accessing properties of ExpandoObject doesn't work, is it bug in new version? Worked well in 1.3x
Sample code:

local obj = API:GetTestDynamic();
local testField = obj.TestField;

print(testField);

    public dynamic GetTestDynamic()
    {
        dynamic obj = new ExpandoObject();

        obj.TestField = "WOW!";

        return obj;
    }
@viniciusjarina
Copy link
Member

What is ExpandoObject ?

@Revan600
Copy link
Author

Revan600 commented Sep 5, 2019

It is one of dynamic hand-crafted objects. We are using Newtonsoft.Json which returns one of these on anonymous deserialization.
https://docs.microsoft.com/en-us/dotnet/api/system.dynamic.expandoobject?view=netframework-4.8

@viniciusjarina
Copy link
Member

Fixed 83fb7ad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants