Serializable Collections  
Author Message
MCEJunkie





PostPosted: Mon Jan 05 11:03:24 CST 2004 Top

Net Framework >> Serializable Collections 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

DotNet148  
 
 
Mickey





PostPosted: Mon Jan 05 11:03:24 CST 2004 Top

Net Framework >> Serializable Collections 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



"Mark Phillips" <EMail@HideDomain.com> wrote in message
news:091f01c3d3ab$fb26acb0$EMail@HideDomain.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


 
 
Mark





PostPosted: Tue Jan 06 10:21:23 CST 2004 Top

Net Framework >> Serializable Collections 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
>
>
>
>"Mark Phillips" <EMail@HideDomain.com>
wrote in message
>news:091f01c3d3ab$fb26acb0$EMail@HideDomain.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
>
>
>.
>