aboutsummaryrefslogtreecommitdiff
path: root/cs-dotnet/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-14 23:11:45 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-14 23:11:45 +0000
commit9d86cba840252b451c4b86d9ea16c821b6c97245 (patch)
tree2933bdc33347592633b721ff68840f177692ed96 /cs-dotnet/src/tests
parent630ae7ac1b172395777a0d4920055751226402f8 (diff)
downloadlibgats-9d86cba840252b451c4b86d9ea16c821b6c97245.tar.gz
libgats-9d86cba840252b451c4b86d9ea16c821b6c97245.tar.bz2
libgats-9d86cba840252b451c4b86d9ea16c821b6c97245.tar.xz
libgats-9d86cba840252b451c4b86d9ea16c821b6c97245.zip
Started a nice, native .net implementation in C#
Diffstat (limited to '')
-rw-r--r--cs-dotnet/src/tests/ints.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/cs-dotnet/src/tests/ints.cs b/cs-dotnet/src/tests/ints.cs
new file mode 100644
index 0000000..ea97820
--- /dev/null
+++ b/cs-dotnet/src/tests/ints.cs
@@ -0,0 +1,16 @@
1using System;
2using System.IO;
3using Com.Xagasoft.Gats;
4
5class Ints
6{
7 static void Main()
8 {
9 FileStream file = new FileStream("test.gats", FileMode.Open,
10 FileAccess.Write );
11 long iVal = 0xfffffe;
12 GatsInteger i = new GatsInteger( iVal );
13 i.Write( file );
14 Console.WriteLine("Read int: " + i.Value );
15 }
16}