In an Activity with List.Add(Obj), when the Obj is a instance of a class, in the Obj members will have a member that is the activity, why?
For example:
Class CL
a as int
b as int
Class end
if the instance of CL is ICL
in ICL that are:
a
b
Activity (Why have it?)
when use list.add(ICL) to a list, the list will have a member ICL that have the activity member.
So, if use RandomAccessFile.WriteObject(List,true,0) it can write successful.(I think it is not successful because it can't write a activity) but when use RandomAccessFile.ReadObject(0), it can't read out the List.
For example:
Class CL
a as int
b as int
Class end
if the instance of CL is ICL
in ICL that are:
a
b
Activity (Why have it?)
when use list.add(ICL) to a list, the list will have a member ICL that have the activity member.
So, if use RandomAccessFile.WriteObject(List,true,0) it can write successful.(I think it is not successful because it can't write a activity) but when use RandomAccessFile.ReadObject(0), it can't read out the List.