Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Main method to call Write factorial which uses ADI
public void Main()
{
for (int counter = 1; counter < 5; counter++)
{
if (counter % 3 == 0)
{
WriteFactorialAsyncUsingDelegate(counter);
}
else
{
Console.WriteLine(counter);
}
}
Console.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.