Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Commit 5471b82

Browse files
committed
Obsolete Greeting(string name)
1 parent 65cc5d3 commit 5471b82

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Utils.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ public static class Utils
1818
/// </summary>
1919
/// <param name="name">The name of the person to include in the greeting. Cannot be null.</param>
2020
/// <returns>A string containing a greeting addressed to the specified name.</returns>
21+
[Obsolete("Use the Greeting(string firstName, string lastName) method instead.")]
2122
public static string Greeting(string name) => $"Hello, {name}!";
2223
}

0 commit comments

Comments
 (0)