On Aug 8, 7:20*am, "Tony Johansson" <johansson.anders...@telia.com>
wrote:
Hello!
I'm reading in a book and it says the following.
"The List<Tclass you used to generate a collection of Product objects has
this attribute [Serializable] -otherwise applying it to Product wouldn't
have helped to make the collection serializable."
Now to my question how can I see that List<Thas this attribute
Serializable.
//Tony
Hi Tony,
Look at List<Tusing Reflector, you can see the Serializable
attribute there:
[Serializable,
DebuggerTypeProxy(typeof(Mscorlib_CollectionDebugV iew<>)),
DebuggerDisplay("Count = {Count}")]
public class List<T: IList<T>, ICollection<T>, IEnumerable<T>,
IList, ICollection, IEnumerable
If you're not familiar with Reflector, I strongly recommend that you
take a look; it's a very handy tool:
http://www.aisto.com/roeder/dotnet/
Hope that helps,
John