Hello, if you serialize the collections using 2 Serialize() calls, you would end up with duplicates of each ITask object. I would do something like this (in C#):
[Serializable]
public class DataStore
{
public ICollection Tasks;
public ICollection Categories;
}
Serializing this class will keep the references correct and will not produce duplicates. greetings, Enno Welbers