add Programmyday form github

This commit is contained in:
Ruben Kallinich
2024-07-25 15:47:46 +02:00
parent 09c8eab938
commit 7362c3d7ce
132 changed files with 3669 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using System.Runtime.CompilerServices;
namespace StringCountExtention
{
internal class Program
{
static void Main(string[] args)
{
string input = "Hello World!";
Console.WriteLine($"{input.LeftStringCount(5)}");
Console.WriteLine($"{input.RightStringCount(6)}");
}
}
static class StringCountExtention
{
public static string LeftStringCount(this string input, int frqen)
{
return input.Substring(0, frqen);
}
public static string RightStringCount(this string input, int frqen)
{
return input.Substring(frqen);
}
}
}

View 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>