internal static Type ParseTypeName(Application app, string typeName)
{
if (typeName.IndexOf(",") > 0) {
return Type.GetType(typeName, /* throwOnError */ false, /* ignoreCase */ false);
}
else {
Type appType = app.GetType();
if (typeName.IndexOf(".") < 0) {
typeName = appType.Namespace + "." + typeName;
}
return appType.Assembly.GetType(typeName, /* throwOnError */ false);
}
}