Relative Content

Tag Archive for c#delegates

How to require passed delegate invocation before function exit?

Over years of game development, I’ve found a common pattern to follow is to hand a function a delegate that it must execute upon completion of whatever that function needs to do, like a callback function that aught to be invoked before a method exits.