I'm doing some unit testing on an improved version of quicksort.
The (hopefully) faster version is implemented using:
TArrayHelper = class helper for System.Generics.Collections.TArray
....
class procedure Sort<T>(var Values: array of T); overload; static;
class procedure Sort<T>(var Values: array of T; Comparer: IComparer<T>); overload; static;
....
I know for now I can just rename the Sort
into SortNew
for the purpose of testing, but at some point I have to fix the method names to sort
.
If there is a class helper in scope, how do I call the original methods?
Is there a way using rtti or some other roundabout method?