What are Action and Func keywords?
Murali Poola
Select an image from your device to upload
They are generic types that help cut down on delegate type declarations. Whereas previously, you'd have to declare your own delegate type for, say, this delegate: public delegate int MyDelegate(int arg1, double arg2, string arg3); public MyDelegate mInstance; You can now declare the instance like this: public Func mInstance;Without having to declare the delegate type. The Action<> delegate is the exact same thing, except for delegates that return void.