As
OriginalGriff[
^] already mentioned it's most likely that it is delegates that you're after. You still missed telling us what the signature of that delegate is though, apart from the fact that the method is not supposed to return anything. I take it then, that this method is called solely on the purpose of it's side effect.
Please elaborate on your question and tell us what you're trying to achieve by calling this method which is passed in via a delegate and I will update my solution in accordance to the added information you'll supply. Use the link
Improve question to improve your question.
Best Regards,
—MRB