Beispiel #1
0
        static void TestEncoder()
        {
            var dict = new Dictionary <string, object>();

            dict["cow"]  = "moo";
            dict["spam"] = "eggs";
            var bytes  = new Encoder(dict).Encode();
            var result = new Decoder(bytes).Decode();
        }
Beispiel #2
0
 static void TestDecoder()
 {
     var bytes = Encoding.ASCII.GetBytes("d3:cow3:moo4:spam4:eggse");
     var dict  = new Decoder(bytes).Decode();
 }