Microsoft provides three ready-made generics delegate . This is call shorter and sweeter delegate. This to minimize the code complexity of the apps. 1. Func < input, output > 2. Action < inputParameter > 3. Predicate < inputParameter > Func <input, output > Delegate :- The Func <input, output> generic delegate is use, when you need to some input parameter and then return some output. The example for Func generic delegate as given below, namespace GenericDelegate { public class Delegates { static void Main( string [] args) { // int is a input parameter and double is output parameter ...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers