c# - without for loop how can is show var type these value in TextBox -


i have scenario have

var testvar=  list1.intersect(list2); 

testvar contains 400 values.

now have show value in text box. like:

textbox1.text = testvar... 

so, without loop how can show these value in textbox

please, help

assuming working lists of strings, want this:

textbox1.text = string.join(", ", testvar.select(s => s).toarray()); 

the reason left s => s lambda list might not of strings. construct give chance build string items accordingly.


Comments