System.Reflection.Assembly.Assembly.CreateInstance C# (CSharp) Method

CreateInstance() public method

public CreateInstance ( String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object args, CultureInfo culture, Object activationAttributes ) : Object
typeName String
ignoreCase Boolean
bindingAttr BindingFlags
binder Binder
args Object
culture System.Globalization.CultureInfo
activationAttributes Object
return Object
		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.");
			}
		}

Same methods

Assembly.Assembly::CreateInstance ( String typeName ) : Object
Assembly.Assembly::CreateInstance ( String typeName, Boolean ignoreCase ) : Object