We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[Test] public void TestDate() { var now = DateTime.UtcNow; var d = new { Timestamp = now }.ToDictionary(); Assert.AreEqual(now, d["Timestamp"]); }
The text was updated successfully, but these errors were encountered:
Same behavior from arrays...
var packagedArray = new { MyArray = new int[0] }.ToDictionary();
Sorry, something went wrong.
Generally, ToDictionary() will fail on all objekts that have circular references.
We should write some tests like this:
[Test] public void TestToDictionary_xxx() { var now = DateTime.UtcNow; var d = CreateJson(new { Timestamp = now }.ToDictionary()); var d2 = CreateJson(new { Timestamp = now }); Assert.AreEqual(d, d2); }
Since this feature is no longer enabled by default, I will remove it from the release 1.0.0.0 milestone
ToDictionary has been removed as of v5.0.0.
No branches or pull requests
The text was updated successfully, but these errors were encountered: