Avatar of CipherIS
Flag for United States of America

asked on 

C# Linq Remove All

Is there a shorter way to write this so no  looping is involved?
                        for (int i = 0; i < data.Count; i++)
                            myObject.RemoveAll(x => x.Name == data[i].Name &&
                                                  x.Description == data[i].Description;

Open in new window

LINQ QueryC#.NET Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon