diff options
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 | } | ||
