internal bool IsEquivalentType(IInternalConfigHost host, string typeName)
{
try {
if (_factoryTypeName == typeName)
{
return(true);
}
Type t1, t2;
if (host != null)
{
t1 = TypeUtil.GetTypeWithReflectionPermission(host, typeName, false);
t2 = TypeUtil.GetTypeWithReflectionPermission(host, _factoryTypeName, false);
}
else
{
t1 = TypeUtil.GetTypeWithReflectionPermission(typeName, false);
t2 = TypeUtil.GetTypeWithReflectionPermission(_factoryTypeName, false);
}
return((t1 != null) && (t1 == t2));
}
catch {
}
return(false);
}