This commit is contained in:
2025-10-03 19:37:52 +08:00
parent 5e36931536
commit c0157a7e91
8 changed files with 69 additions and 17 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ namespace MySourceGenerator {
sb.AppendLine("using System;");
sb.AppendLine("namespace Generated;");
sb.AppendLine("public static class HelloWorld {");
sb.AppendLine(" public static void SayHello() {");
sb.AppendLine(" Console.WriteLine(\"Hello World!!!\");");
sb.AppendLine(" public static string SayHello() {");
sb.AppendLine(" return \"Hello World!!!\";");
sb.AppendLine(" }");
sb.AppendLine("}");