I would just like to start by saying hi. I am a new user here. I have read the forms for a long time but have never joined. I am new to C# but I will try to answer any questions I can on the form.
My question is, is it possible to have a multi item .FindAll? I am trying to find all inspection keys that are of a certain type.
List<Inspections> InspectionsType = new List<Inspections>();
List<Inspections> InspectionKey = new List<Inspections>();
InspectionsType = myInspections.FindAll(delegate(Inspection insp) { return insp.Type == ProjectInspectionType.Basic; });
InspectionKey = InspectionsType.FindAll(delegate(Inspection insp) { return insp.InspectionKey == myInspection.Key; });In my code above InspectionKey now
with my code above InspectionKey now has all inspection keys that are type Basic. I would like to do this with one findall.
InspectionsType = myInspections.FindAll(delegate(Inspection insp) { return insp.Type ==
ProjectInspectionType.Basic && insp.InspectionKey == myInspection.Key; });
something like that.
Thank you in advance for any help.