Created
June 21, 2023 15:51
-
-
Save dariogriffo/ed57d8d63d54c8649d278b65818f8d30 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
using System.Text.Json; | |
List<int> a = new() { 1, 2, 3 }; | |
foreach (var i in a) | |
{ | |
a.Add(i * 2); | |
} | |
Console.WriteLine(JsonSerializer.Serialize(a)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment