private TranslateTree FindOurAlgo()
{
TranslateTree myAlgo = null;
// loop through the objects until the algorithm is found or not
System.Collections.IEnumerator enumCollection = Objects.GetEnumerator();
enumCollection.Reset();
while (enumCollection.MoveNext())
{
myAlgo = enumCollection.Current as TranslateTree;
if (myAlgo != null)
return myAlgo; // found it
}
return null;
}