public IEnumerable<string> ListFoldersInternal(IEnumerable<CloudBlobDirectory> folders)
{
return new HashSet<string>(folders.Select(x => x.Prefix));
}
Is it a good choice to use HashSet
to avoid duplicates and return IEnumerable
?
Any ideas to improve this code?