E
EP
I have class that is serialized and passed over appdomain boundaries. It
also includes these members:
PHTTP_RESPONSE _phttpResponse;
PHTTP_UNKNOWN_HEADER _pHttpUnknownHeaders;
PVOID _pEntityBuffer;
When I try to serialize the class I get the exception complaining that
System.Reflection.Pointer is not marked as serializable.
How can I mark that these pointers are actually value types or unmanaged
types so they are serialized by their true unmanaged value?
PS.
It would also be acceptable for this class to be marshalbyref, but even then
when these pointers are accessed, it attempts to serialize them individually
to pass their value over the appdomain boundary.
also includes these members:
PHTTP_RESPONSE _phttpResponse;
PHTTP_UNKNOWN_HEADER _pHttpUnknownHeaders;
PVOID _pEntityBuffer;
When I try to serialize the class I get the exception complaining that
System.Reflection.Pointer is not marked as serializable.
How can I mark that these pointers are actually value types or unmanaged
types so they are serialized by their true unmanaged value?
PS.
It would also be acceptable for this class to be marshalbyref, but even then
when these pointers are accessed, it attempts to serialize them individually
to pass their value over the appdomain boundary.