Guest User

Untitled

a guest
May 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. /// <summary>
  2. /// Removes a specific tag from the cloud.
  3. /// </summary>
  4. /// <param name="text">This is the tag's name that you are looking for.</param>
  5. /// <exception cref="ArgumentException">Says that the parameter cannot be null or empty.</exception>
  6. static void Remove(string text)
  7. {
  8. if (String.IsNullOrEmpty(text))
  9. throw new ArgumentException("The parameter cannot be null or empty!");
  10.  
  11. foreach (Tag tag in tagList)
  12. {
  13. if (tag.Text == text)
  14. tagList.Remove(tag);
  15. }
  16. }
Add Comment
Please, Sign In to add comment