ModelBuilder.TypeCreatorBase.Populate C# (CSharp) Method

Populate() public method

The parameter is null. The parameter is null.
public Populate ( object instance, IExecuteStrategy executeStrategy ) : object
instance object
executeStrategy IExecuteStrategy
return object
        public virtual object Populate(object instance, IExecuteStrategy executeStrategy)
        {
            if (instance == null)
            {
                throw new ArgumentNullException(nameof(instance));
            }

            if (executeStrategy == null)
            {
                throw new ArgumentNullException(nameof(executeStrategy));
            }

            VerifyPopulateRequest(instance.GetType(), null, executeStrategy.BuildChain);

            // The default will be to not do any additional population of the instance
            return PopulateInstance(instance, executeStrategy);
        }