Serializable class vs timer

Ariez

Centurion
Joined
Feb 28, 2003
Messages
164
I have a serializable class.
I serialize a hashTable containing different instances of that class.

Now i need to "embed" a timer in the class to get each instance generate an event at a specific time.

The problem is the timer is not serializable, and the class can't be serialized anymore.

Is there a way to disgard the timer member when i call for the object to serialize?:confused:
 
try the xmlignore attribute:
Visual Basic:
<Xml.Serialization.XmlIgnore()> _
    Public ReadOnly Property MyTimer() As Timer
        Get
            Return _MyTimer
        End Get
    End Property

Cheers!
 
Great, thanx a lot Cywizz...
while searching for <Xml.Serialization.XmlIgnore()>
i found the <NonSerialized()> attribute which worked fine.
(i'm in binary not soap)...
 
Back
Top