Skip to content

Commit 11d0844

Browse files
author
James Brundage
committed
chore: CSharp Hello World ( Fixes #846 )
1 parent 189b7fe commit 11d0844

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Languages/CSharp/CSharp-Template-HelloWorld.ps.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Template function HelloWorld.cs {
1818
string helloMessage = @"
1919
$($Message.Replace('"','""'))
2020
";
21-
if (args.Length > 0) {
22-
helloMessage = String.Join(" ", args);
21+
if (args != null && args.Length > 0) {
22+
helloMessage = System.String.Join(" ", args);
2323
}
2424
System.Console.WriteLine(helloMessage);
2525
}

0 commit comments

Comments
 (0)