Delegates as Parameter

This answer just changed my life, thank you. Don’t know why I never thought of this before!