public void CleanLists() { if (RequiredMods == null) { RequiredMods = new List <Guid>(); } if (ConflictingMods == null) { ConflictingMods = new List <Guid>(); } if (LoadTheseBefore == null) { LoadTheseBefore = new List <Guid>(); } if (LoadTheseAfter == null) { LoadTheseAfter = new List <Guid>(); } if (References == null) { References = new List <string>(); } RequiredMods.Remove(Guid.Empty); ConflictingMods.Remove(Guid.Empty); LoadTheseBefore.Add(Guid.Empty); LoadTheseAfter.Remove(Guid.Empty); RequiredMods = RequiredMods.Distinct().ToList(); ConflictingMods = ConflictingMods.Distinct().ToList(); LoadTheseBefore = LoadTheseBefore.Distinct().ToList(); LoadTheseAfter = LoadTheseAfter.Distinct().ToList(); }