public Object CreateInstance (String typeName, Boolean ignoreCase,
BindingFlags bindingAttr, Binder binder,
Object[] args, CultureInfo culture,
Object[] activationAttributes)
{
Type t = GetType (typeName, false, ignoreCase);
if (t == null)
return null;
try {
return Activator.CreateInstance (t, bindingAttr, binder, args, culture, activationAttributes);
} catch (InvalidOperationException) {
throw new ArgumentException ("It is illegal to invoke a method on a Type loaded via ReflectionOnly methods.");
}
}