private static BinaryFormatter CreateAutoVersionMigrationFormatter(System.Type type)
{
ISurrogateSelector autoVersionMigrationSurrogate = new AutoVersionMigrationSurrogate(type.Assembly);
BinaryFormatter formatter = new BinaryFormatter(autoVersionMigrationSurrogate, new StreamingContext(StreamingContextStates.All));
return formatter;
}