c# Turn all object in a list into a csv with quotes Sample C# code: var foos = GetAllFoos().FooName.AsEnumerable(); if (foos == null) return “”; foos = foos.OrderBy(x => x.Value); var result = “‘” + string.Join(“‘,’”, foos.Select(x => x.Value)) + “‘”;