DependencyInjector.CreateComponent C# (CSharp) Method

CreateComponent() static private method

static private CreateComponent ( Type, type ) : object
type Type,
return object
    static object CreateComponent(Type type)
    {
        try {
            return Activator.CreateInstance(type);
        }
        catch (TargetInvocationException e) {
            throw e.InnerException;
        }
    }
}