Hello Trapulo,
Thanks for sharing your experience in the group. It benefits developers
here.
Thanks again for participating the community.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Reply-To: "Trapulo" <
[email protected]>
!From: "Trapulo" <
[email protected]>
!References: <
[email protected]>
<
[email protected]>
!Subject: Re: The type System.ComponentModel.PropertyDescriptor is not
marked as serializable.
!Date: Thu, 18 Sep 2003 19:38:25 +0200
!Lines: 31
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!x-mimeole: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <
[email protected]>
!Newsgroups:
microsoft.public.dotnet.framework,microsoft.public.dotnet.framework.remoting
,microsoft.public.dotnet.framework.windowsforms.controls,microsoft.public.do
tnet.languages.vb.controls
!NNTP-Posting-Host: host160-11.pool80116.interbusiness.it 80.116.11.160
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
!Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.remoting:13095
microsoft.public.dotnet.framework.windowsforms.controls:10887
microsoft.public.dotnet.languages.vb.controls:2603
microsoft.public.dotnet.framework:54118
!X-Tomcat-NG: microsoft.public.dotnet.framework
!
!
!!> Trapulo,
!> I would separate the presentation (PropertyDescriptor) from the domain
!> (serializable collection), in other words when I needed the
!> PropertyDescriptors I would create them.
!
!My problem was that I need PropertuDescriptor to implement IBindingList, so
!I cannot remote it from the collectionbase object.
!
! Also, seeing as they should be the
!> same for all instances of the collection I would make them shared
!variables.
!> Which means I would only need to create them once.
!>
!
!Ive solved marking them as nonserializable. Smart solution
!
!> Rockford Lhotka has a complete framework described in his book "Expert
!> One-on-One Visual basic .NET Business Objects" that describe how to use
!> IBindingList and serializable collections of business objects.
!>
!>
http://www.lhotka.net
!>
!
!I'll see!
!
!thanks!
!
!
!