This repository was archived by the owner on Jun 26, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments