Using delegates in PowerShell

What is a delegate? This is an object type, that instantiates by associating with some method so that we can invoke this method by calling the delegate.

Why is this needed? One of the cases – is that we can use delegate as a parameter for another method.

Is PowerShell supports this? Starting with version 6.1 – yes.

Continue reading