Convert Python 3.x snippet to C#/LINQ.
- by Hamish Grubijan
I want to sort elements of a HashSet<string> and join them by a ; character.
Python interpreter version:
>>> st = {'jhg', 'uywer', 'nbcm', 'utr'}
>>> strng = ';'.join(sorted(s))
>>> strng
'ASD;anmbh;ashgg;jhghjg'
C# signature of a method I seek:
private string getVersionsSorted(HashSet<string> versions);
I can do this without using Linq, but I really want to learn it better.
Many thanks!