T
Tony Johansson
Hi!
Assume I have a collection of Person object in generic class list List<T>.
List<Person> myList = new List<Person();
When I want to serialize this collection myList the Person class must have
the serializable attribute.
I know that the List<T> class also has this serializable attribute otherwise
it will not work.
Now to my question what I store is bunch of Persons objects stored in a
collection List<T> but why
must this List<T> class has this serializable attribute.
I don't fully understand that. I can easily understand that the Person class
must have this serializable attribute.
//Tony
Assume I have a collection of Person object in generic class list List<T>.
List<Person> myList = new List<Person();
When I want to serialize this collection myList the Person class must have
the serializable attribute.
I know that the List<T> class also has this serializable attribute otherwise
it will not work.
Now to my question what I store is bunch of Persons objects stored in a
collection List<T> but why
must this List<T> class has this serializable attribute.
I don't fully understand that. I can easily understand that the Person class
must have this serializable attribute.
//Tony