S
Steve B.
Hi,
If a class implements the ISerializable, does the class has the
SerializableAttribute "automatically" defined, and if a class has the
SerializableAttribute defined, does it implements the ISerializable
interface ?
Actually, I'd like to create a serialization utility that can serializable
any class that is serializable, without having to test at run time the
feasability.
For exemple, I'd like something like this :
public static void Serialize(ISerializable objectToSerialize, Stream output)
{
....
}
which works for both way of declaring a class serializable.
Thanks in advance,
Steve
If a class implements the ISerializable, does the class has the
SerializableAttribute "automatically" defined, and if a class has the
SerializableAttribute defined, does it implements the ISerializable
interface ?
Actually, I'd like to create a serialization utility that can serializable
any class that is serializable, without having to test at run time the
feasability.
For exemple, I'd like something like this :
public static void Serialize(ISerializable objectToSerialize, Stream output)
{
....
}
which works for both way of declaring a class serializable.
Thanks in advance,
Steve