diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2012-11-14 23:11:45 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-14 23:11:45 +0000 |
| commit | 9d86cba840252b451c4b86d9ea16c821b6c97245 (patch) | |
| tree | 2933bdc33347592633b721ff68840f177692ed96 /cs-dotnet/src/tests | |
| parent | 630ae7ac1b172395777a0d4920055751226402f8 (diff) | |
| download | libgats-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.cs | 16 |
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 @@ | |||
| 1 | using System; | ||
| 2 | using System.IO; | ||
| 3 | using Com.Xagasoft.Gats; | ||
| 4 | |||
| 5 | class 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 | } | ||
