Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Last active February 21, 2020 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save angelovstanton/27d3388049d9d7458d6b to your computer and use it in GitHub Desktop.
Save angelovstanton/27d3388049d9d7458d6b to your computer and use it in GitHub Desktop.
public static class ArglistTest
{
public static void DisplayNumbersOnConsole(__arglist)
{
ArgIterator ai = new ArgIterator(__arglist);
while (ai.GetRemainingCount() > 0)
{
TypedReference tr = ai.GetNextArg();
Console.WriteLine(TypedReference.ToObject(tr));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment