CollectionExtensions.CleanTags Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

CleanTags(IEnumerable)

Cleans up a collection of tags by removing invalid characters. Duplicate and empty tags are removed before returning the remaining tags sorted in alphabetical order.

public static IList<string> CleanTags(this IEnumerable<string> tags)

Parameters

tags
System.Collections.Generic.IEnumerable

The list of tags to clean.

Returns

System.Collections.Generic.IList

A cleaned list of tags.