static private NewInstanceOrNull ( |
||
cl | ||
return | object |
internal static object NewInstanceOrNull(Type cl)
{
try
{
return System.Activator.CreateInstance(cl);
}
catch (SecurityException)
{
}
catch (LinkageError)
{
}
catch (InstantiationException)
{
}
catch (MemberAccessException)
{
}
return null;
}