void paramsExample(object arg1, object arg2, params object[] argsRest) { foreach (object arg in argsRest) { /* .... */ } }