c# ienumerable to string with delimiter Code Example How to upcast an object of type IEnumerable
to IEnumerable if passed to the function as … IEnumerable m_oEnum = new List {"1", "2", "3"};. Best regards . Note that this does not modify the original collection, just points the reference to a new collection. ienumerable to list IEnumerable is the base interface for collections in the System.Collections.Generic namespace such as List, Dictionary, and Stack and other generic collections such as ObservableCollection and ConcurrentStack. list string to ienumerable c#. List intList = ...; string commaSeparatedStr = string.Join(",", intList); Professional provider of PDF & Microsoft Word and Excel document editing and modifying solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. Convert List to IEnumerable in C# - Delft Stack Below code, itself creates a new file gfg.txt which contains the filtered strings. Convert List to IEnumerable in C#