Remove() public method

public Remove ( string tag ) : void
tag string
return void
Beispiel #1
0
 private static void FillLocalizer(Localizer loc, ITemplateSet templates)
 {
     for (Template t = templates.GetNextTemplate(); t != null; t = templates.GetNextTemplate())
     {
         if (string.IsNullOrEmpty(t.Translation))
         {
             loc.Remove(t.Tag);
         }
         else
         {
             loc.Add(t.Tag, t.Translation);
         }
     }
 }
		private static void FillLocalizer (Localizer loc, ITemplateSet templates)
		{
			for (Template t = templates.GetNextTemplate(); t != null; t = templates.GetNextTemplate())
			{
				if (string.IsNullOrEmpty(t.Translation))
					loc.Remove(t.Tag);
				else
					loc.Add(t.Tag, t.Translation);
			}
		}