private static Type ReadType(BinaryReader reader) { var typeString = reader.ReadString(); return Type.GetType(typeString, true); }