private void LoadType()
{
type = null;
foreach(string url in ecac)
{
try
{
Assembly assembly = Assembly.LoadFrom(url);
foreach(Type t in assembly.GetTypes())
{
if(!t.IsEnum)
continue;
if(className == t.ToString())
{
type = t;
break;
}
}
} catch(BadImageFormatException)
{
} catch(ReflectionTypeLoadException)
{
} catch(ArgumentException)
{
}
if(type != null)
return;
}
}