Rhino.Kit.NewInstanceOrNull C# (CSharp) Method

NewInstanceOrNull() static private method

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