Skip to content

Commit e298824

Browse files
authored
Update README.md
1 parent d8c81f7 commit e298824

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is a personal project with purpose to learn and understand better c# and js
66
[Nuget package](https://www.nuget.org/packages/CSharpToJavaScript/)
77

88
### C#
9-
```csharp
9+
```csharp
1010
using static CSharpToJavaScript.APIs.JS.GlobalThis;
1111
namespace ConsoleAppTest.CSharp;
1212

@@ -51,7 +51,7 @@ namespace ConsoleAppTest;
5151

5252
public class Program
5353
{
54-
public static void Main()
54+
public static async Task Main()
5555
{
5656
Assembly executingAssembly = Assembly.GetExecutingAssembly();
5757

@@ -66,7 +66,8 @@ public class Program
6666
};
6767

6868
CSTOJS cstojs = new(executingAssembly, opt);
69-
cstojs.Generate2Async("C:\\GitReps\\ConsoleAppTest\\CSharp\\test.cs");
69+
await cstojs.Generate2Async("C:\\GitReps\\ConsoleAppTest\\CSharp\\test.cs");
70+
7071
Console.ReadKey();
7172
}
7273
}

0 commit comments

Comments
 (0)