private void makeUnique() { Patterns = Patterns.Distinct().ToList(); ContextsAfter = ContextsAfter.Distinct().ToList();; ContextsBefore = ContextsBefore.Distinct().ToList();; InvalidsAfter = InvalidsAfter.Distinct().ToList();; InvalidsBefore = InvalidsBefore.Distinct().ToList(); Patterns.Remove(""); ContextsAfter.Remove(""); ContextsBefore.Remove(""); InvalidsAfter.Remove(""); InvalidsBefore.Remove(""); }