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

Support ExpandoObject #4

Open
shps951023 opened this issue Mar 25, 2019 · 0 comments
Open

Support ExpandoObject #4

shps951023 opened this issue Mar 25, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@shps951023
Copy link
Owner

Support ExpandoObject

        [TestMethod]
        public void ExpandoObjectTest()
        {
            dynamic data = new System.Dynamic.ExpandoObject();
            data.MyProperty1 = 123;
            data.MyProperty2 = "test";

            var result = data.GetObjectValues(); //Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: ''System.Dynamic.ExpandoObject' does not contain a definition for 'GetObjectValues''

            Assert.AreEqual(123, result["MyProperty1"]);
            Assert.AreEqual("test", result["MyProperty2"]);
        }
@shps951023 shps951023 self-assigned this Mar 25, 2019
@shps951023 shps951023 pinned this issue Mar 25, 2019
@shps951023 shps951023 added the enhancement New feature or request label Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant