generated from Templates/Dotnet_Library
17 lines
295 B
C#
17 lines
295 B
C#
|
namespace project_name;
|
|||
|
|
|||
|
public class HelloWorldProvider
|
|||
|
{
|
|||
|
public string GetHelloWorld(string? name = null)
|
|||
|
{
|
|||
|
if (string.IsNullOrEmpty(name))
|
|||
|
{
|
|||
|
return "Hello world!";
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return $"Hello, {name}!";
|
|||
|
}
|
|||
|
}
|
|||
|
}
|