Created
December 2, 2024 12:35
-
-
Save renatogroffe/b4f5a0d7e92ee805ef59b2df33855cc4 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
List<Guid> guidsV4 = new(); | |
for (int i = 1; i <= 5; i++) | |
{ | |
var guid = Guid.NewGuid(); | |
guidsV4.Add(guid); | |
Console.WriteLine($"{guid} - versao {guid.Version}"); | |
Thread.Sleep(1000); | |
} | |
Console.WriteLine(); | |
Console.WriteLine($"Guids V4: {JsonSerializer.Serialize(guidsV4)}"); | |
Console.WriteLine(); | |
Console.WriteLine($"Guids V4 - Order(): {JsonSerializer.Serialize(guidsV4.Order())}"); | |
Console.WriteLine(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment