<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Does C# support variable arguments (vararg's) on methods?</title><link>http://blogs.msdn.com/csharpfaq/archive/2004/08/05/209384.aspx</link><description>There was a suggestion/question on the Product Feedback site for VS2005 that suggested that the params keyword may not be that well understood. The params keyword can be applied on a method parameter that is an array. When the method is invoked, the elements</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Does C# support variable arguments (vararg's) on methods?</title><link>http://blogs.msdn.com/csharpfaq/archive/2004/08/05/209384.aspx#210322</link><pubDate>Sat, 07 Aug 2004 01:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:210322</guid><dc:creator>Eric Newton</dc:creator><description>Oh great, here come the people complaining about a completely open ended interface... I can just hear the thunder now.&lt;br&gt;&lt;br&gt;TIDAL WAVE!</description></item><item><title>re: Does C# support variable arguments (vararg's) on methods?</title><link>http://blogs.msdn.com/csharpfaq/archive/2004/08/05/209384.aspx#211421</link><pubDate>Mon, 09 Aug 2004 20:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211421</guid><dc:creator>AndrewSeven</dc:creator><description>That example seems like a bad idea.&lt;br&gt;&lt;br&gt;I try to only use params to pass a variable number of the same things. In fact it is mostly strings.&lt;br&gt;To pass an array of object where the objects will be of arbitrary types is going to a dangerous place.</description></item><item><title>re: Does C# support variable arguments (vararg's) on methods?</title><link>http://blogs.msdn.com/csharpfaq/archive/2004/08/05/209384.aspx#211660</link><pubDate>Tue, 10 Aug 2004 05:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:211660</guid><dc:creator>Flier Lu</dc:creator><description>I wonder why vararg mode is so slow than pass by array ?&lt;br&gt;&lt;br&gt;public class EntryPoint&lt;br&gt;{&lt;br&gt;  [DllImport(&amp;quot;msvcrt.dll&amp;quot;, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl)]&lt;br&gt;  extern static int printf(string format, __arglist);&lt;br&gt;&lt;br&gt;  public static void Main(String[] args)&lt;br&gt;  {&lt;br&gt;    printf(&amp;quot;%s %d&amp;quot;, __arglist(&amp;quot;Flier Lu&amp;quot;, 1024));&lt;br&gt;  }&lt;br&gt;}&lt;br&gt;&lt;br&gt;btw: Here is some articls from my blog about vararg mode.&lt;br&gt;&lt;br&gt;&lt;a target="_new" href="http://www.blogcn.com/User8/flier_lu/index.html?id=2602611"&gt;http://www.blogcn.com/User8/flier_lu/index.html?id=2602611&lt;/a&gt;&lt;br&gt;&lt;a target="_new" href="http://www.blogcn.com/User8/flier_lu/index.html?id=2602647"&gt;http://www.blogcn.com/User8/flier_lu/index.html?id=2602647&lt;/a&gt;</description></item><item><title>Re:</title><link>http://blogs.msdn.com/csharpfaq/archive/2004/08/05/209384.aspx#333460</link><pubDate>Tue, 28 Dec 2004 12:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:333460</guid><dc:creator>RebelGeekz </dc:creator><description>[&lt;a target="_new" href="http://itpeixun.51.net/"&gt;http://itpeixun.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://aissl.51.net/"&gt;http://aissl.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz003.freewebpage.org/"&gt;http://kukuxz003.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz001.51.net/"&gt;http://kukuxz001.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz003.51.net/"&gt;http://kukuxz003.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz005.51.net/"&gt;http://kukuxz005.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz002.51.net/"&gt;http://kukuxz002.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz004.freewebpage.org/"&gt;http://kukuxz004.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz007.51.net/"&gt;http://kukuxz007.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz001.freewebpage.org/"&gt;http://kukuxz001.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz006.51.net/"&gt;http://kukuxz006.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz002.freewebpage.org/"&gt;http://kukuxz002.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz004.51.net/"&gt;http://kukuxz004.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz008.51.net/"&gt;http://kukuxz008.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz009.51.net/"&gt;http://kukuxz009.51.net/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz005.freewebpage.org/"&gt;http://kukuxz005.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz006.freewebpage.org/"&gt;http://kukuxz006.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz007.freewebpage.org/"&gt;http://kukuxz007.freewebpage.org/&lt;/a&gt;][&lt;a target="_new" href="http://kukuxz009.freewebpage.org/"&gt;http://kukuxz009.freewebpage.org/&lt;/a&gt;]         </description></item></channel></rss>