Basically i’m using a string.join like below.
string Combinestr = string.Join("", newListing+"\n"+"Total Found");
however, i do not want to append the very last line in newListing. newListing is a HashSet, is this the case where I need to do a trimend after i’ve joined all the strings? If so, how would I do a trimend for the entire string “\nTotal Found”?
You want that string to appear between the items in your HashSet.
That’s what the first parameter is for: