I'm having some trouble figuring out how to deserialize a binary file. I mostly can't figure out how to use the second argument of SerializationInfo.GetValue(); - if I just put a type keyword there, it's invalid, and if I use the TypeCode, it's invalid as well. This is my current attempt (obviously it doesn't build).
protected GroupMgr(SerializationInfo info, StreamingContext context) {
Groups = (Dictionary<int, Group>) info.GetValue("Groups", (Type) TypeCode.Object);
Linker = (Dictionary<int, int>) info.GetValue("Linker", (Type) TypeCode.Object );
}