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

Commit 82dc03f

Browse files
committed
More docs
1 parent 397d800 commit 82dc03f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/Utils.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,24 @@ public static class Utils
1414
[Obsolete("Use Greeting() instead.")]
1515
public static string Greet() => $"Hello, World!";
1616

17+
/// <summary>
18+
/// Creates a personalized greeting message using the specified first and last names.
19+
/// </summary>
20+
/// <param name="firstName">The first name to include in the greeting. Cannot be null.</param>
21+
/// <param name="lastName">The last name to include in the greeting. Cannot be null.</param>
22+
/// <returns>A string containing the greeting message formatted as "Hello, {firstName} {lastName}!".</returns>
1723
public static string Greeting(string firstName, string lastName) => $"Hello, {firstName} {lastName}!";
1824

25+
/// <summary>
26+
/// Returns a personalized greeting message for the specified name.
27+
/// </summary>
28+
/// <param name="name">The name of the person to include in the greeting. Cannot be null.</param>
29+
/// <returns>A string containing a greeting addressed to the specified name.</returns>
1930
public static string Greeting(string name) => $"Hello, {name}!";
2031

32+
/// <summary>
33+
/// Returns a standard greeting message.
34+
/// </summary>
35+
/// <returns>A string containing the greeting message "Hello, World!".</returns>
2136
public static string Greeting() => $"Hello, World!";
2237
}

0 commit comments

Comments
 (0)