Posted in:

The twentieth video in my exploring MoreLINQ series looks at one of my favourite MoreLINQ helper methods: ToDelimitedString, plus a few related methods such as ToHashSet, ToArrayByIndex and ToDictionary.

Although the .NET framework already has String.Join method which can do exactly the same thing, ToDelimitedString has the advantage of being an extension method on IEnumerable<T>, which makes for more readable code when you want to put it at the end of a pipeline.

You can find all videos in this series here.

Want to learn more about LINQ? Be sure to check out my Pluralsight course LINQ Best Practices.