aboutsummaryrefslogtreecommitdiff
path: root/bindings/cs/Demo/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/cs/Demo/Program.cs')
-rw-r--r--bindings/cs/Demo/Program.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/bindings/cs/Demo/Program.cs b/bindings/cs/Demo/Program.cs
new file mode 100644
index 0000000..1644360
--- /dev/null
+++ b/bindings/cs/Demo/Program.cs
@@ -0,0 +1,32 @@
+using libsurvive;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Demo
+{
+ internal class MyHandler : SurviveContext
+ {
+ public MyHandler()
+ {
+ }
+
+ public MyHandler(string[] args) : base(args)
+ {
+ }
+ }
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ MyHandler handler = new MyHandler(args);
+
+ while (handler.Poll() == 0) {
+ }
+
+ }
+
+ }
+}