public ElementBinding AddElement(Type elementType, IModelBinder binder)
        {
            var binding = new ElementBinding(_elements.Count, elementType, binder);
            _elements.Add(binding);

            return binding;
        }
        public ElementBinding AddElement(Type elementType, IModelBinder binder)
        {
            var binding = new ElementBinding(_elements.Count, elementType, binder);

            _elements.Add(binding);

            return(binding);
        }
Exemplo n.º 3
0
 void IBindingReportVisitor.Element(ElementBinding binding)
 {
     _descriptions.Push("[{0}]".ToFormat(binding.Index));
     write(binding.Binder);
 }
 void IBindingReportVisitor.Element(ElementBinding binding)
 {
     _descriptions.Push("[{0}]".ToFormat(binding.Index));
     write(binding.Binder);
 }