Dotnet_Library/project_name/HelloWorldProvider.cs
Simon Diesenreiter 7893bd7b15
Some checks failed
Rename the project from template / rename-project (push) Has been skipped
CI / linter (9.0.X, ubuntu-latest) (push) Successful in 53s
CI / tests_linux (9.0.X, ubuntu-latest) (push) Successful in 1m15s
SonarQube Scan / SonarQube Trigger (push) Failing after 11m15s
fix linting errors
2024-11-27 20:46:28 +01:00

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}!";
}
}
}