TGetOrEnumerateSink

Utility class to simplify implementation of data sources that can be called as 'get' (fill an array) or 'enumerate' (call a callback).