From 9d86cba840252b451c4b86d9ea16c821b6c97245 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 14 Nov 2012 23:11:45 +0000 Subject: Started a nice, native .net implementation in C# --- cs-dotnet/src/tests/ints.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cs-dotnet/src/tests/ints.cs (limited to 'cs-dotnet/src/tests') 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 @@ +using System; +using System.IO; +using Com.Xagasoft.Gats; + +class Ints +{ + static void Main() + { + FileStream file = new FileStream("test.gats", FileMode.Open, + FileAccess.Write ); + long iVal = 0xfffffe; + GatsInteger i = new GatsInteger( iVal ); + i.Write( file ); + Console.WriteLine("Read int: " + i.Value ); + } +} -- cgit v1.2.3