N
Nirdesh
Hi,
I am serializing a custom class holding some data for my project.
This data internally contains a class which contains an event
public delegate void MemberModifiedEventHandler(object sender,
MemberModifiedEventArgs e);
/// <summary>
/// Occurs on modification in a group.
/// </summary>
public event MemberModifiedEventHandler OnMembersModified;
This sender brings in a CutomPage derived from
System.Windows.Forms.UserControl.
I do not need to serialize this class as it contains only UI and has
got nothing to be saved and serialized.
But when i serialize the data it gives the error "CutomPage is not
marked as serializable".
How can i come across this problem without serializing this page.
NonSerializable attribute does not work for events and classes.
How can i serialize my data without serializing these usercontrol
clases.
Waiting for a kind reply.
Thanks & Regards
Nirdesh Dabas
(e-mail address removed)
I am serializing a custom class holding some data for my project.
This data internally contains a class which contains an event
public delegate void MemberModifiedEventHandler(object sender,
MemberModifiedEventArgs e);
/// <summary>
/// Occurs on modification in a group.
/// </summary>
public event MemberModifiedEventHandler OnMembersModified;
This sender brings in a CutomPage derived from
System.Windows.Forms.UserControl.
I do not need to serialize this class as it contains only UI and has
got nothing to be saved and serialized.
But when i serialize the data it gives the error "CutomPage is not
marked as serializable".
How can i come across this problem without serializing this page.
NonSerializable attribute does not work for events and classes.
How can i serialize my data without serializing these usercontrol
clases.
Waiting for a kind reply.
Thanks & Regards
Nirdesh Dabas
(e-mail address removed)