Call Stack

Method Resolution

Parameter Arrays (params)

static void Print(params string[] paths)
{
	foreach (string path in paths) 
		Console.WriteLine(path);
}

Characteristics

  1. The parameter array must be the last parameter in the method declaration.
  2. A method cannot have more than one parameter array.
  3. The caller can specify zero parameters for the parameter array.
  4. They are type-safe: the type must match the type identified by the array.
  5. The caller can use an explicit array rather than a comma-separated list of parameters. The resultant CIL code is identical.