public void MakeImmutable() { HashIndex = HashIndex.ToImmutableDictionary(); Index = Index.ToImmutableDictionary(); ClosedTags = ClosedTags.ToImmutableHashSet(); //OpenTags = OpenTags.ToImmutableHashSet(); }
private void MarkClosed(string tag) { Add(tag); ClosedTags.Add(tag); }
protected bool IsClosed(string tag) => openFixed ? !OpenTags.Contains(tag) : ClosedTags.Contains(tag);