Hey,
I can fix this problem by messing with outher parts of my codebase but I thought I'd ask to see if there is an easier way of doing this.
I've got the following linq query.
(select a in objectA
where a.type = 1
select new
{
Id = a.Id,
Field2 = <needThisValue>
Field3 = <needThisValue>
}).ToList();
Now the two "needThisValues" need to be supplied via out variables of a method that accepts a, such as
TestMethod(object a, out string stringA, out string StringB)
So is there anyway I can cleverly call this method from within the linq statement to populate the two fields?
Thanks in advance.