For Programmers: Free Programming Magazines  


Home > Archive > C# > November 2004 > Variable argument list









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Variable argument list
toa

2004-11-16, 6:54 pm

C and C++ support variable argument lists, such as for example the printf()
function. Does C# have any provision for this?


bazad

2004-11-16, 6:54 pm

"toa" <toalmark@hotmail.com> writes:

> C and C++ support variable argument lists, such as for example the printf()
> function. Does C# have any provision for this?


Pass a collection.
Gus

2004-11-16, 6:54 pm

Check out the params keyword.
http://msdn.microsoft.com/library/d...vclrfparams.asp
- Gus Perez
C# Compiler QA Team Lead

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com