Steven wrote:
> Hi guys
>
> I'm trying to serialize a class that includes an ArrayList member. Here's
> the class:
>
> [Serializable]
> public class InstantiationData
> {
> public string InstanceTaskAssignedTo;
> public string InstanceMailMsg;
> public DateTime InstanceDueDate;
> public Approvers ADApproversGroup; // this is the ArrayList member //
> }
If it's an ArrayList member, why is the type "Approvers"?
It's practically impossible to say without a concise-but-complete code
example. But, it should be obvious that to serialize a member of a
class, that member needs to be serializable, and if it's a collection,
the collection members need to be serializable.
Whether those are _sufficient_ conditions in your case, I can't say.
But for sure, they are necessary.
Pete
|