I am developing an application to extract all entities from a Quality Center project that matches with certain filter.
For this I am loading the entities on a TDAPIOLELib.List object.
This is an extract from the method that performs the action.
_RequirementsList = null;
RequirementsFactory = _TDC.ReqFactory as ReqFactory;
TDFilter TDFilter = RequirementsFactory.Filter as TDFilter;
TDFilter["RQ_USER_01"] = "Y";
_RequirementsList = RequirementsFactory.NewList(TDFilter.Text);
This method also works for refresh the list "_RequirementsList" to have the list updated.
The issue is that as I constantly use this list and others list objects, I need to clear the list each time I use it in other process.
In the HP ALM OTA API reference mentions the "IList2" Interface that adds to the IList interface missing basic functionality, as the Clear() method.
How can I implement the IList2 Interface on a regular List object, in order to have access to the original methods of list and also to the Clear() method included in the interface?