Skip to content

Commit 5462e93

Browse files
authored
Update README.md
1 parent d326772 commit 5462e93

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,29 @@ Brute forcing conversion(translation) from C# to Javascript.
33

44
This is a personal project with purpose to learn and understand better c# and js at the same time. Many stuff is not supported and some won't. Updates will be happening when I'm using this library.(irregular)
55

6-
| C# | Javascript |
7-
| --- | --- |
8-
| <pre>using static CSharpToJavaScript.APIs.JS.GlobalThis;<br>namespace ConsoleAppTest.CSharp;<br><br>public class Test<br>{<br> public Test()<br> {<br> Console.Log("HelloWorld!");<br> }<br>}</pre> | <pre>class Test<br>{<br> constructor()<br> {<br> console.log("HelloWorld!");<br> }<br>}</pre>|
6+
### C#
7+
```csharp
8+
using static CSharpToJavaScript.APIs.JS.GlobalThis;
9+
namespace ConsoleAppTest.CSharp;
10+
11+
public class Test
12+
{
13+
public Test()
14+
{
15+
Console.Log("HelloWorld!");
16+
}
17+
}
18+
```
19+
### Javascript
20+
```javascript
21+
class Test
22+
{
23+
constructor()
24+
{
25+
console.log("HelloWorld!");
26+
}
27+
}
28+
```
929

1030
## How to use
1131
*Nuget package will be available once I figure out ~how to do docs for api(should be easy) and what to do with esmascript and how to convert to c#.~ NUGET PACKAGE SOON!*

0 commit comments

Comments
 (0)