Serializable Collections

  • Thread starter Thread starter Mark Phillips
  • Start date Start date
M

Mark Phillips

It seems that the only .NET Collection classes that are
serializable derive from Hashtable. I am planning on
remoting collections and wanted to use something more
like a CollectionBase. Any suggestions on how to do this
without a hashtable collection?

Thanks,
Mark Phillips
 
CollectionBase and other collection types *are* serializable. If you're
happy with default serialization semantics, you can be serializable and not
inherit from ISerializable:

[Serializable] class Foo { }
 
Thanks Mickey. I have your book and I have found it
really helpful

Mark
-----Original Message-----
CollectionBase and other collection types *are* serializable. If you're
happy with default serialization semantics, you can be serializable and not
inherit from ISerializable:

[Serializable] class Foo { }

--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com



It seems that the only .NET Collection classes that are
serializable derive from Hashtable. I am planning on
remoting collections and wanted to use something more
like a CollectionBase. Any suggestions on how to do this
without a hashtable collection?

Thanks,
Mark Phillips


.
 
Back
Top