Solution: The Unique Tag Cleaner

Review how to use HashSet<T> to guarantee uniqueness and convert between collections to achieve a sorted result.

Solution: The Unique Tag Cleaner

Review how to use HashSet<T> to guarantee uniqueness and convert between collections to achieve a sorted result.
C# 14.0
using System.Collections.Generic;
using BlogEngine;
TagProcessor processor = new();
List<string> messyTags = ["web", "c#", "coding", "web", "api", "c#"];
List<string> cleanTags = processor.CleanTags(messyTags);
foreach (string tag in cleanTags)
{
Console.WriteLine(tag);
}