You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,29 @@ Brute forcing conversion(translation) from C# to Javascript.
3
3
4
4
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)
5
5
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
+
usingstaticCSharpToJavaScript.APIs.JS.GlobalThis;
9
+
namespaceConsoleAppTest.CSharp;
10
+
11
+
publicclassTest
12
+
{
13
+
publicTest()
14
+
{
15
+
Console.Log("HelloWorld!");
16
+
}
17
+
}
18
+
```
19
+
### Javascript
20
+
```javascript
21
+
classTest
22
+
{
23
+
constructor()
24
+
{
25
+
console.log("HelloWorld!");
26
+
}
27
+
}
28
+
```
9
29
10
30
## How to use
11
31
*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