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 CleanTags(this IEnumerable tags)

Parameters

tags
System.Collections.Generic.IEnumerable{System.String}

Returns

System.Collections.Generic.IList{System.String}

A cleaned list of tags.