/// <summary>
        /// Create a scope for a child model
        /// </summary>
        /// <param name="type">The type.</param>
        /// <param name="prefix">The prefix.</param>
        /// <param name="modelName">Name of the model.</param>
        /// <returns></returns>
        private IModelBinderContext CreateForChild(Type type, string prefix, string modelName)
        {
            var context = new ModelBinderContext(type, modelName, prefix, ValueProvider);

            context.RootBinder = RootBinder;
            return(context);
        }
Пример #2
0
 /// <summary>
 /// Create a scope for a child model
 /// </summary>
 /// <param name="type">The type.</param>
 /// <param name="prefix">The prefix.</param>
 /// <param name="modelName">Name of the model.</param>
 /// <returns></returns>
 private IModelBinderContext CreateForChild(Type type, string prefix, string modelName)
 {
     var context = new ModelBinderContext(type, modelName, prefix, ValueProvider);
     context.RootBinder = RootBinder;
     return context;
 }