Skip to content

Instantly share code, notes, and snippets.

@renatogroffe
Created December 2, 2024 12:35
Show Gist options
  • Save renatogroffe/b4f5a0d7e92ee805ef59b2df33855cc4 to your computer and use it in GitHub Desktop.
Save renatogroffe/b4f5a0d7e92ee805ef59b2df33855cc4 to your computer and use it in GitHub Desktop.
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