E
erxuan
Hi,
I need to serialize a class A into byte[] and it has a field of type
class B.
Class B is serializable using XML serializer. All the other fields in
class A are of type int.
Do I need to do any changes to class B in order to make an object of
class A serializable using BinaryFormatter?
[Serializable]
class A
{
private B field1;
private int field2;
}
I need to serialize a class A into byte[] and it has a field of type
class B.
Class B is serializable using XML serializer. All the other fields in
class A are of type int.
Do I need to do any changes to class B in order to make an object of
class A serializable using BinaryFormatter?
[Serializable]
class A
{
private B field1;
private int field2;
}