add Programmyday form github
This commit is contained in:
20
UmlautsExtentions/Program.cs
Normal file
20
UmlautsExtentions/Program.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
|
||||
namespace UmlautsExtentions
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string input = "Ueber ein leben hinaus, aeßert man sich nicht.";
|
||||
Console.WriteLine(input.Umlauts());
|
||||
}
|
||||
}
|
||||
static class UmlautsExtentions
|
||||
{
|
||||
public static string Umlauts(this string input)
|
||||
{
|
||||
return input.Replace("ae","ä").Replace("oe","ö").Replace("ue","ü").Replace("Ae", "Ä").Replace("Oe", "Ö").Replace("Ue", "Ü");
|
||||
}
|
||||
}
|
||||
}
|
||||
10
UmlautsExtentions/UmlautsExtentions.csproj
Normal file
10
UmlautsExtentions/UmlautsExtentions.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user