Ported libs fo net V6

This commit is contained in:
schnulller
2022-05-17 01:21:10 +02:00
parent cb23a75761
commit 2ffd46cd62
79 changed files with 225299 additions and 124 deletions

View File

@@ -0,0 +1,18 @@
namespace HaWeb.HTMLHelpers;
public static class StringHelpers {
public static string GetEnumerationString(List<string> strlist)
{
var res = "";
foreach (var str in strlist)
{
if (str != strlist.First())
if (str == strlist.Last())
res += " und " + str;
else
res += ", " + str;
else
res += str;
}
return res;
}
}