Last active
October 4, 2022 09:52
-
-
Save Rayzbam/aa2d7c834055e2c64a67a9b8475bf30d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestEnumerator2 | |
{ | |
public string Name { get; set; } | |
public bool IsSucceed { get; set; } | |
public ObservableCollection<int> Toto { get; set; } | |
public TestEnumerator2() | |
{ | |
Toto = new ObservableCollection<int>(); | |
} | |
} | |
var serialize = JsonSerializer.Serialize(new TestEnumerator2(),new JsonSerializerOptions { ReferenceHandler = System.Text.Json.Serialization.ReferenceHandler.Preserve}); | |
var deserialize = JsonSerializer.Deserialize<TestEnumerator>(serialize); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment