J
Joe
I have several classes which I need serialized. Here is their class
definitions:
public class TopContainer
{
private LevelTwoType m_levelTwo;
public LevelTwoType LevelTwo
{
get
{
return m_levelTwo;
}
}
....
}
public class LevelTwoType
{
private ArrayList m_levelThree;
public LevelThreeType LevelThree this [int index]
{
get
{
return (LevelThreeType)m_levelThree[index];
}
}
// Plus the following
Add(LevelThreeType)
Count
....
}
there are 2 more classes similar to LevelTwoType class.
I can't get these to serialize. I tried using the ISerializable interface
and implement the GetObjectData method but still no luck.
If I use the ICollection interface it sort of works but not the way I need
it to.
definitions:
public class TopContainer
{
private LevelTwoType m_levelTwo;
public LevelTwoType LevelTwo
{
get
{
return m_levelTwo;
}
}
....
}
public class LevelTwoType
{
private ArrayList m_levelThree;
public LevelThreeType LevelThree this [int index]
{
get
{
return (LevelThreeType)m_levelThree[index];
}
}
// Plus the following
Add(LevelThreeType)
Count
....
}
there are 2 more classes similar to LevelTwoType class.
I can't get these to serialize. I tried using the ISerializable interface
and implement the GetObjectData method but still no luck.
If I use the ICollection interface it sort of works but not the way I need
it to.