Created
June 17, 2025 21:01
-
-
Save renatogroffe/1e6b1ffcc6b73c2429d294314dfb3029 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.Runtime.InteropServices; | |
Console.WriteLine("***** Testes com C# 14 + .NET 10 | Unbound generic support for nameof *****"); | |
Console.WriteLine($"Versao do .NET em uso: {RuntimeInformation | |
.FrameworkDescription} - Ambiente: {Environment.MachineName} - Kernel: {Environment | |
.OSVersion.VersionString}"); | |
Console.WriteLine(); | |
Console.WriteLine($"nameof(List<object>) = {nameof(List<object>)}"); | |
Console.WriteLine($"nameof(HashSet<int>) = {nameof(HashSet<int>)}"); | |
Console.WriteLine($"nameof(IEnumerable<string>) = {nameof(IEnumerable<string>)}"); | |
Console.WriteLine(); | |
Console.WriteLine($"nameof(List<>) = {nameof(List<>)}"); | |
Console.WriteLine($"nameof(HashSet<>) = {nameof(HashSet<>)}"); | |
Console.WriteLine($"nameof(IEnumerable<>) = {nameof(IEnumerable<>)}"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment