public AVLTreeSort(CompareMethod <T> aSortMethod, DuplicateHandlingType aDuplicateHandling) { sortMethod = aSortMethod; duplicateHandling = aDuplicateHandling; switch (DuplicateHandling) { case DuplicateHandlingType.CollectDuplicates: tree = new BaseAVLTreeSort <T, T[]> (aSortMethod, aDuplicateHandling); break; case DuplicateHandlingType.ThrowException: case DuplicateHandlingType.Drop: tree = new BaseAVLTreeSort <T, T> (aSortMethod, aDuplicateHandling); break; } }
public SortEventArgs(IAVLTreeSort <T> aTree, CompareMethod <T> aMethod, DuplicateHandlingType aDuplicates) { tree = aTree; method = aMethod; duplicateHandling = aDuplicates; }
public void Disconnect() { tree.Disconnect(); tree = null; }
public void Disconnect() { tree = null; method = null; }