V
vcquestions
What's the best approch to having a common method that takes a
collection ( List<> ), goes through its elements and deletes them.
public ref struct Struct1
{
public:
Struct1( );
~Struct1( );
};
public ref struct Struct2
{
public:
Struct2( );
~Struct2( );
};
typedef List<Struct1^>^ StructuresOne;
typedef List<Struct12>^ StructuresTwo;
??method that would accept StructuresTwo or StructuresOne and call
destructor on each object??
Thanks in advance!
vcq
collection ( List<> ), goes through its elements and deletes them.
public ref struct Struct1
{
public:
Struct1( );
~Struct1( );
};
public ref struct Struct2
{
public:
Struct2( );
~Struct2( );
};
typedef List<Struct1^>^ StructuresOne;
typedef List<Struct12>^ StructuresTwo;
??method that would accept StructuresTwo or StructuresOne and call
destructor on each object??
Thanks in advance!
vcq