public void SetSortBit(SortSettings settings) { int num = sortSaveData.FindIndex((string _data) => settings.settingsType == SortSettings.GetSettingsTypeBySortBit(_data)); if (num != -1) { sortSaveData.RemoveAt(num); } sortSaveData.Add(SortSettings.GetSortBit(settings)); }