I am trying to invoke a function for every member of a list, but pass additional parameters to the delegate.
if I have a list called documents
documents
Use lambda expressions instead of method groups:
List documents = GetAllDocuments(); documents.ForEach( d => CallAnotherFunction(d, "some content") ); List templates = GetAllTemplates(); templates.ForEach( t => CallAnotherFunction(t, "other content") );