view Test/RewritingTest/MSPackCliTest.cs @ 38:9f8e1087c61b

add MSPack cli test
author riono <e165729@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2021 23:54:54 +0900
parents
children
line wrap: on
line source

using System;
using System.IO;
using System.Net.Sockets;
//using MsgPack.Serialization;

public class MSPackCliTest {

    public static void Main() {
        // var foo = new SerialObj();
        // foo.key = "riono";
        // foo.foo = 100;
        //
        // Stream stream = new MemoryStream();
        //
        // var serializer = MessagePackSerializer.Get<SerialObj>();
        // serializer.Pack(stream, foo);
        // stream.Position = 0;
        // var value = serializer.Unpack(stream);
        //
        // Console.WriteLine("unpack:" + value.key);

    }
}

public class SerialObj {
    public string key;
    
     public int foo;
}