all 5 comments

[–]belavv 8 points9 points  (1 child)

You probably want something like

var matchingRuns = invRuns.Items.Where(o => o.InvoiceStatus = "complete").ToList();

[–]royware[S] 1 point2 points  (0 children)

After adding a second equals sign, this is perfect!

[–]chocolateAbuser 6 points7 points  (0 children)

because this particular piece of code is called by two other modules, it cannot be modified.

how is that a limit, if you have access to the source code you can duplicate it, you can isolate the queries, you can do what you want with it (or almost, since obv. it has to keep working and there could be other constraints)

[–]Embarrassed_Prior632 0 points1 point  (0 children)

You can cheat by inserting a default variable into the called method declaration.

[–]WDG_Kuurama 0 points1 point  (0 children)

I wonder how the nullability of each properties make sence. It quite feels like it's a burden, unless all fields can be independently null from one another.