Skip to content

Instantly share code, notes, and snippets.

@joymon
Created June 24, 2015 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joymon/a0011e8725fc801012a2 to your computer and use it in GitHub Desktop.
Save joymon/a0011e8725fc801012a2 to your computer and use it in GitHub Desktop.
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