aboutsummaryrefslogtreecommitdiff
path: root/bindings/cs/Demo/Program.cs
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-03-28 20:36:05 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-03-28 20:36:05 -0600
commit91f0cab811e983da63ea49f6e24afae283138a1c (patch)
tree5778c7f27e29ce51a9b86897dcf0e3a03beeed1b /bindings/cs/Demo/Program.cs
parentbb37e04c7ec35f28ec929afb9634fea1db007723 (diff)
downloadlibsurvive-91f0cab811e983da63ea49f6e24afae283138a1c.tar.gz
libsurvive-91f0cab811e983da63ea49f6e24afae283138a1c.tar.bz2
Functional C# in windows
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) {
+ }
+
+ }
+
+ }
+}