Exemplo n.º 1
0
 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);
         }
     }
 }
Exemplo n.º 2
0
        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);
                }
            }
        }