Return to Snippet

Revision: 53161
at November 15, 2011 07:13 by Mardoch


Initial Code
static void ListArguments (params object[] arguments)  
{  
   foreach (object argument in arguments)  
   {  
      Console.WriteLine (argument);  
   }  
}  
  
public static void Main( )  
{  
   ListArguments ("Arguments: ", DateTime.Now, 3.14f);  
}  

Initial URL
http://megasnippets.com/source-codes/csharp/call_variable_arguments

Initial Description

                                

Initial Title
Call with variable arguments

Initial Tags

                                

Initial Language
C#