aqee_se 0 Newbie Poster

i've declare my class as serializable. but still assembly raising exception for and object inside. it is not marked as serializable. how to do that too as serializable. Code is like that

Imports System.IO
Imports System.Runtime.Serialization

<Serializable()> Public Class Voice


Private pSender As String
Private pReciever As String
Private pSound As FileStream

Public Sub New()

End Sub

Public Property Sender()
Get
Return Me.pSender
End Get
Set(ByVal value)
pSender = value
End Set
End Property


Public Property Receiver()
Get
Return Me.pReciever
End Get
Set(ByVal value)
pReciever = value
End Set
End Property

Public Property Sound()
Get
Return Me.pSound
End Get
Set(ByVal value)
pSound = value
End Set
End Property

End Class