Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// Removes a specific tag from the cloud.
- /// </summary>
- /// <param name="text">This is the tag's name that you are looking for.</param>
- /// <exception cref="ArgumentException">Says that the parameter cannot be null or empty.</exception>
- static void Remove(string text)
- {
- if (String.IsNullOrEmpty(text))
- throw new ArgumentException("The parameter cannot be null or empty!");
- foreach (Tag tag in tagList)
- {
- if (tag.Text == text)
- tagList.Remove(tag);
- }
- }
Add Comment
Please, Sign In to add comment