示例#1
0
        private bool RemoveIncludeTag(string tag)
        {
            if (!IncludeTags.Contains(tag))
            {
                return(false);
            }

            return(IncludeTags.Remove(tag));
        }
示例#2
0
        private bool AddIncludeTag(string tag)
        {
            if (IncludeTags.Contains(tag))
            {
                return(false);
            }

            IncludeTags.Add(tag);

            return(true);
        }
示例#3
0
 public bool Includes(string tag)
 {
     return(!IncludeTags.Any() || IncludeTags.Contains(tag));
 }