summaryrefslogtreecommitdiff
path: root/xmake/templates/csharp/static/src
diff options
context:
space:
mode:
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));
+ }
+}