I am trying to understand how this method call works in a Linq statement
.
I have a line of code such as:
foreach (var model in myDataList.Select(RenderMyData))
{
pPoint.CreateStuff(model, true);
}
and RenderMyData looks like this:
protected PowerPoint.MyModel RenderMyData(CustomData myData)
{
// Do stuff
}
How does the CustomData object get passed to the RenderMyData method? If I wanted to add another parameter to the RenderMyData method (like a bool) then how I can pass that in the linq select?