Serialization


M

Martin

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?
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

serialization 3
Serializing controls using XML Serialization 3
Serializing an application 0
Serializing to xml. 1
Serial Comms 2
Serialization of objects 1
serialize a collection 2
Serialization of Controls 2

Top