+ 3

Can you give an example of : Converting a HashSet to a string ? in C#

I tried to implement it , but I do not know why I got this result : https://code.sololearn.com/c1a14A1A14a1/?ref=app

24th Jun 2021, 9:05 AM
Issam Abdoh
Issam Abdoh - avatar
4 odpowiedzi
+ 4
If you don't want to loop through your hash set, you could use: string.Join(" ", hs); instead of ToString() on line 40.
24th Jun 2021, 9:22 PM
Trinity ⚜
Trinity ⚜ - avatar
+ 2
It did not work, can you edit the code and then give it to me ? Trinity ⚜
25th Jun 2021, 6:49 AM
Issam Abdoh
Issam Abdoh - avatar
+ 2
You have a pm. Also have a look on how to loop through lists and sets with a for loop. Or I could show you later this day...
25th Jun 2021, 7:50 AM
Trinity ⚜
Trinity ⚜ - avatar
25th Jun 2021, 7:38 PM
Issam Abdoh
Issam Abdoh - avatar