A
Amadrias
Hi all,
I am using a class to transport some data over the
network. I then added the [Serializable] attribute to the
class.
My problem is that this class is part of a framework and
that I do not want developers to call empty constructors.
But the runtime sends me an exception when I try to
serialize this class asking me to provide it with an
empty constructor such as:
public MyClass(){}
Is there a way to avoid that problem knowing that using
the ISerializable interface, it stills ask me to
implement an empty constructor?
Thanks for the help.
Amadrias
I am using a class to transport some data over the
network. I then added the [Serializable] attribute to the
class.
My problem is that this class is part of a framework and
that I do not want developers to call empty constructors.
But the runtime sends me an exception when I try to
serialize this class asking me to provide it with an
empty constructor such as:
public MyClass(){}
Is there a way to avoid that problem knowing that using
the ISerializable interface, it stills ask me to
implement an empty constructor?
Thanks for the help.
Amadrias