Chapter 11. Understanding parameter arrays

After completing this chapter, you will be able to:

Image Write a method that can accept any number of arguments by using the params keyword.

Image Write a method that can accept any number of arguments of any type by using the params keyword in combination with the object type.

Image Explain the differences between methods that take parameter arrays and methods that take optional parameters.

Parameter arrays are useful ...

Get Microsoft Visual C# Step by Step, 8th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.