protected void ClearTranslations(string type) { for (int i = Translations.Count() - 1; i >= 0; i--) { var translation = Translations.ElementAt(i); if (translation.Translation.Type == type) { Translations.Remove(translation); } } }
private void ClearTranslations(string type) { int length = Translations.Count; for (int i = length - 1; i >= 0; i--) { var translation = Translations.ElementAt(i); if (translation.Translation.Type == type) { Translations.Remove(translation); } } }