hello,

i want to do the following:

I have an extender provider which is serialized correctly. the vs designer
generates the following code for a button for example:

myButton.SetMyProvider(this, new MyItem());

Now what I want to do is that he creates a new class first. this class
called MyItem has a collection. so i want that the code is generated like
the following

MyItem Item1 = new MyItem();
Item1.MyCollection.Add(new MyChildItem());
Item1.MyCollection.Add(new MyChildItem());
myButton.SetMyProvider(this, Item1);

Is it possible to get the objects serialized a way like that?