I'm using this:
when I want to reference the 866 straights in any giving job. However this only references the first on in the job (because of "FirstOrDefault") and doesn't touch any others in the job. I know I'm missing something here but I figured I could get the answer here quickly.
How do I reference ALL straights in the job?
Item itm = Job.Items.FirstOrDefault(x => x.CID == 866);
when I want to reference the 866 straights in any giving job. However this only references the first on in the job (because of "FirstOrDefault") and doesn't touch any others in the job. I know I'm missing something here but I figured I could get the answer here quickly.
How do I reference ALL straights in the job?