aboutsummaryrefslogtreecommitdiff
path: root/cs-dotnet/src/tests/ints.cs
blob: 7099995aecd8291e746b9ed416935dd223f480f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.IO;
using Com.Xagasoft.Gats;

class Ints
{
    static void Main()
    {
        FileStream file = new FileStream("test.gats", FileMode.Open,
                FileAccess.Read );
        GatsObject obj = GatsObject.Read( file );
        Console.WriteLine("Read type: " + obj.GetType() );
        Console.WriteLine("Read int: " + ((GatsInteger)obj).Value );
    }
}