Created
January 6, 2025 12:18
-
-
Save renatogroffe/8b328eb5a060856058daabd22640d9f8 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
namespace ConsoleAppOverloadResolution.Tests; | |
public static class OverloadResolutionTester | |
{ | |
public static void PrintItems(params string[] items) | |
=> Console.WriteLine($"{nameof(OverloadResolutionTester)} - " + | |
$"string[]: [ {String.Join(" | ", items)} ]"); | |
public static void PrintItems(params ReadOnlySpan<string?> items) | |
=> Console.WriteLine($"{nameof(OverloadResolutionTester)} - " + | |
$"ReadOnlySpan<string?>: [ {String.Join(" | ", items)} ]"); | |
public static void PrintItems(params IEnumerable<string> items) | |
=> Console.WriteLine($"{nameof(OverloadResolutionTester)} - " + | |
$"IEnumerable<string>: [ {String.Join(" | ", items)} ]"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment