C # is a strongly typed language; adding anonymous types has not changed this.
Of course, you can pass a variable like an object (or an array of objects) into a function,
private void MyFunction(object items) {
Perhaps you could tell us what you are trying to achieve, perhaps there is a better design.
source share