O'Reilly logo

Microsoft Visual C# Step by Step, 8th Edition by John Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required