1 2 3 4 5 6
if (exceptions != null) { //indexes = indexes.Except (exceptions).ToArray (); HashSet <int> newExceptions = new HashSet <int> (exceptions); indexes = indexes.Where (index => !newExceptions.Contains (index)).ToArray (); }