C# how to loop internally @ each iteration access components as galapagos

I want to implement an algorithm similar to galapagos, but with extensions. I have the C# code for the core algorithm, but what I’m interested in is how to create a component (or external process) which can loop internally, and at each iteration set or read other components (ie. the genome and the fitness). Any ideas, or insights into how Galapagos does this?