From 63628550708a616c5c58bc5c707db1e7fd9cd7c2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 14 Nov 2012 23:55:29 +0000 Subject: Strings, bools, and ints all seem fine, the more complex container types are coming next, and will implement the full range of appropriate interfaces. --- cs-dotnet/src/tests/ints.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cs-dotnet/src/tests') diff --git a/cs-dotnet/src/tests/ints.cs b/cs-dotnet/src/tests/ints.cs index ea97820..7099995 100644 --- a/cs-dotnet/src/tests/ints.cs +++ b/cs-dotnet/src/tests/ints.cs @@ -7,10 +7,9 @@ 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 ); + FileAccess.Read ); + GatsObject obj = GatsObject.Read( file ); + Console.WriteLine("Read type: " + obj.GetType() ); + Console.WriteLine("Read int: " + ((GatsInteger)obj).Value ); } } -- cgit v1.2.3