We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 189b7fe commit 11d0844Copy full SHA for 11d0844
1 file changed
Languages/CSharp/CSharp-Template-HelloWorld.ps.ps1
@@ -18,8 +18,8 @@ Template function HelloWorld.cs {
18
string helloMessage = @"
19
$($Message.Replace('"','""'))
20
";
21
- if (args.Length > 0) {
22
- helloMessage = String.Join(" ", args);
+ if (args != null && args.Length > 0) {
+ helloMessage = System.String.Join(" ", args);
23
}
24
System.Console.WriteLine(helloMessage);
25
0 commit comments