/// <summary> /// Ajoute une liste de Charge à la collection /// </summary> public void AddRange(PropertyControllerCollection value) { for (int i = 0; i < value.Count; i++) { Add(value[i]); } }
/// <summary> /// Add a controller /// </summary> /// <param name="viewType"></param> /// <param name="propertyInfo"></param> /// <param name="controllerType"></param> public void AddController(Type viewType, PropertyInfo propertyInfo, Type controllerType) { if (viewType == null) { throw new ArgumentNullException("pageType"); } if (propertyInfo == null) { throw new ArgumentNullException("propertyInfo"); } if (controllerType == null) { throw new ArgumentNullException("controllerType"); } if (!_pageController.Contains(viewType)) { _pageController[viewType] = new PropertyControllerCollection(); } PropertyController pair = new PropertyController(propertyInfo, controllerType); (_pageController[viewType] as PropertyControllerCollection).Add(pair); }