Catel.IoC.TypeFactory.CreateInstanceWithParametersAndAutoCompletionWithTag C# (CSharp) Method

CreateInstanceWithParametersAndAutoCompletionWithTag() public method

Creates an instance of the specified type using the specified parameters as injection values. This method will also auto-complete any additional dependencies that can be resolved from the IServiceLocator.
The is null.
public CreateInstanceWithParametersAndAutoCompletionWithTag ( Type typeToConstruct, object tag ) : object
typeToConstruct System.Type The type to construct.
tag object The preferred tag when resolving dependencies.
return object
        public object CreateInstanceWithParametersAndAutoCompletionWithTag(Type typeToConstruct, object tag, params object[] parameters)
        {
            Argument.IsNotNull("typeToConstruct", typeToConstruct);

            return CreateInstanceWithSpecifiedParameters(typeToConstruct, tag, parameters, true);
        }