码迷,mamicode.com
首页 > Windows程序 > 详细

C# - params

时间:2014-10-16 12:40:07      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:c#   params   

By using the params keyword, you can specify a method parameter that takes a variable number of arguments.

You can send a comma-separated list of arguments of the type specified in the parameter declaration or an array of arguments of the specified type. You also can send no arguments. If you send no arguments, the length of the params list is zero.

No additional parameters are permitted after the params keyword in a method declaration, and only one params keyword is permitted in a method declaration.

C# - params

标签:c#   params   

原文地址:http://blog.csdn.net/troubleshooter/article/details/40144019

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!