ModelBuilder.ArrayTypeCreator.CreateChildItem C# (CSharp) Method

CreateChildItem() protected method

Creates a child item given the context of a possible previous item being created.
The parameter is null.
protected CreateChildItem ( Type type, IExecuteStrategy executeStrategy, object previousItem ) : object
type System.Type The type of value to generate.
executeStrategy IExecuteStrategy The execute strategy.
previousItem object The previous item generated, or null.
return object
        protected virtual object CreateChildItem(Type type, IExecuteStrategy executeStrategy, object previousItem)
        {
            if (executeStrategy == null)
            {
                throw new ArgumentNullException(nameof(executeStrategy));
            }

            return executeStrategy.CreateWith(type);
        }