summaryrefslogtreecommitdiff
path: root/xmake/templates/csharp/static/src
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-09 18:06:16 +0800
committerruki <[email protected]>2026-08-09 18:06:16 +0800
commit5f5daf64c504e1103a355f45bf925a5149b03e24 (patch)
treeaf4d584b3c7badc1df56038cdb29099b4f3e99fd /xmake/templates/csharp/static/src
parent6ac4ea833193a4319a1eb6e5f588d1877fd48064 (diff)
move templates dir
Diffstat (limited to 'xmake/templates/csharp/static/src')
-rw-r--r--xmake/templates/csharp/static/src/foo.cs7
-rw-r--r--xmake/templates/csharp/static/src/main.cs7
2 files changed, 14 insertions, 0 deletions
diff --git a/xmake/templates/csharp/static/src/foo.cs b/xmake/templates/csharp/static/src/foo.cs
new file mode 100644
index 000000000..bba30d999
--- /dev/null
+++ b/xmake/templates/csharp/static/src/foo.cs
@@ -0,0 +1,7 @@
+namespace Foo;
+
+public class Foo {
+ public static int Add(int a, int b) {
+ return a + b;
+ }
+}
diff --git a/xmake/templates/csharp/static/src/main.cs b/xmake/templates/csharp/static/src/main.cs
new file mode 100644
index 000000000..c2e4eb2fd
--- /dev/null
+++ b/xmake/templates/csharp/static/src/main.cs
@@ -0,0 +1,7 @@
+using System;
+
+class Program {
+ static void Main(string[] args) {
+ Console.WriteLine("add(1, 2) = {0}", Foo.Foo.Add(1, 2));
+ }
+}