How to have a function run a callback in VB.net
Just create a method that takes an Action
delegate as parameter:
Sub DoThis(callback as Action) 'do this 'do that If Not callback Is Nothing Then callback() End IfEnd Sub
and you can call it like
DoThis(Sub() Console.WriteLine("via callback!"))