Chapter 11 Quick Reference


Chapter 11 Quick Reference

To

Do this

Write a method that accepts any number of arguments of a given type

Write a method whose parameter is a params array of the given type. For example, a method that accepts any number of bool arguments would be:

someType Method(params bool[] flags)  {      ... }

Write a method that accepts any number of arguments of any type

Write a method whose parameter is a params array of object. For example:

someType Method(params object[] paramList)   {      ... }




Microsoft Visual C# 2005 Step by Step
Microsoft® Visual C#® 2005 Step by Step (Step By Step (Microsoft))
ISBN: B002CKYPPM
EAN: N/A
Year: 2005
Pages: 183
Authors: John Sharp

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net