There is a way to declare a method with a collection of anonymous type as parameter?
for example somethings like this pseudo syntax :
private void dosomething ( List<class with { string Name, string Lastname, int Age }> persons) {
...
}
To avoid creating a single use class.
UPDATE What I want is to avoid the definition of a class that I will use only for passing data to this method.
private void dosomething<T> (List<T> ...