1

Closed

Serialization of KeyValuePair<,> and Tuple<,> does not work

description

Fails to deserialize:
 
KeyValuePair<DataTable, int> pair = new KeyValuePair<DataTable, int>(new DataTable("test"), 0);
        string serializedpair = serializer.Serialize(pair);
        var pair2 = (KeyValuePair<DataTable, int>)serializer.Deserialize(serializedpair, typeof(KeyValuePair<DataTable, int>));
Closed Jun 9, 2012 at 1:55 AM by JamesNK
Works for me

comments