Is that possible?
Hi all, (let's start with that),
as usual i do not have enough time to dive into this, so i'm directing
this question to u guys (him/her).
We have a messagenamespace with quite an amount of messages which we
use to have some interaction between the various layers. The messages
have, of course, the same format, which will be presented below:
<format>
Namespace BussinessTypes
<Serializable()> _
Public Class Response_Gegevens_Organisatie
Inherits PVOResponseBericht
#Region "Fields"
Private _naam As SimpleTypes.Naam
Private _soort As SimpleTypes.Rol
#End Region
#Region "Constructors"
Public Sub New(ByVal info As SerializationInfo, ByVal context
As StreamingContext)
MyBase.New(info, context)
End Sub
Public Sub New( _
ByVal naam As SimpleTypes.Naam, _
ByVal soort As SimpleTypes.Rol)
MyBase.New(Enums.MessageTypes.Request_Gegevens_Org anisatie)
_naam = naam
_soort = soort
End Sub
Public Sub New()
MyBase.New(Enums.MessageTypes.Response_Gegevens_Or ganisatie)
End Sub
#End Region
#Region "Properties"
Public Readonly Property Soort() As SimpleTypes.Rol
Get
Return _soort
End Get
End Property
...... etc.
</format>
Using the above format we don't have public fields, nor do we have
public setters in the class-properties.
Is it possible to serialize this object (maybe with the
SerializationInfo-class) or do we have to create public setters (which
takes 2 days).
Thx in advance
grtz,
Mark