using System;
using System.Reflection;
using System.Runtime.Serialization;

namespace QC.QsprShared.Config;

internal class QtmToQsprBinder : SerializationBinder
{
	public override Type BindToType(string assemblyName, string typeName)
	{
		try
		{
			Assembly assembly = Assembly.Load("QsprMiscShared");
			return assembly.GetType("QC.QsprShared.Config.FeatureConfig");
		}
		catch
		{
			return null;
		}
	}
}
