Don't worry
IEnumerable<>
is just a Type, To which you can easily fetch element by element using
foreach
.
If you don't want to get a distinct result in
IEnumerable
then you can fetch it in anonymous variable and then iterate that using foreach like
var result = queue.Distinct();
foreach(string s in result)
{
}
Or Either way you want in
List<String>
then you can do following.
List<String> list = queue.Distinct().ToList<String>();