Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# Action Delegate

//one of three built-in generic delegate types:

static void ConsolePrint(int i)
{
    Console.WriteLine(i);
}

static void Main(string[] args)
{
    Action<int> printActionDel = ConsolePrint;
    printActionDel(10);
}
Source by dotnetpattern.com #
 
PREVIOUS NEXT
Tagged: #Action #Delegate
ADD COMMENT
Topic
Name
5+2 =