Ejemplo n.º 1
0
		public BindingContext(BindingContext parent)
			: base(parent)
		{
			_modelType = parent._modelType;
			_modelName = parent._modelName;
			_valueProvider = parent._valueProvider;
			_modelState = parent._modelState;
			_model = parent._model;
		}
Ejemplo n.º 2
0
 public BindingContext(BindingContext parent)
     : base(parent)
 {
     _modelType     = parent._modelType;
     _modelName     = parent._modelName;
     _valueProvider = parent._valueProvider;
     _modelState    = parent._modelState;
     _model         = parent._model;
 }
Ejemplo n.º 3
0
        public BindingContext(ControllerContext context, Type modelType, 
            string modelName, IValueProvider valueProvider, 
			ModelStateCollection modelState) 
            : base(context)
        {
            Precondition.Require(modelType, () => Error.ArgumentNull("modelType"));
			Precondition.Require(valueProvider, () => Error.ArgumentNull("valueProvider"));

            _modelType = modelType;
            _modelName = modelName;
			_valueProvider = valueProvider;
            _modelState = modelState;
        }
Ejemplo n.º 4
0
        public BindingContext(ControllerContext context, Type modelType,
                              string modelName, IValueProvider valueProvider,
                              ModelStateCollection modelState)
            : base(context)
        {
            Precondition.Require(modelType, () => Error.ArgumentNull("modelType"));
            Precondition.Require(valueProvider, () => Error.ArgumentNull("valueProvider"));

            _modelType     = modelType;
            _modelName     = modelName;
            _valueProvider = valueProvider;
            _modelState    = modelState;
        }