Created
October 4, 2022 09:54
-
-
Save Rayzbam/5232b9b88bea5b5fc955d2b760413cc6 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