0

Is it possible to add a model binder for something like this?

public class Foo {

    public TagCollection Tags { get; set; }

    public Test() {
        Tags = new TagCollection();
    }

}
marcus
  • 9,616
  • 9
  • 58
  • 108
  • Sure, but implementation depends on how the input is gathered. – Buildstarted Oct 29 '11 at 16:08
  • @BuildStarted Alright, this is what I'm trying to do http://pastebin.com/TbVeNa1W – marcus Oct 29 '11 at 16:46
  • Specifically I meant does each tag have it's own input box or is it comma/space/whatever separated? I would look into implementing [IModelBinder](http://buildstarted.com/2010/09/12/custom-model-binders-in-mvc-3-with-imodelbinder/) rather than inheriting from DefaultModelBinder. – Buildstarted Oct 29 '11 at 17:10

0 Answers0