Commit 70d6b2b4 authored by Uwe Wienkop's avatar Uwe Wienkop

2020-06-29b

parent c7c71518
......@@ -13,7 +13,6 @@ namespace _09_DelegateVerkettung
return s;
//Console.WriteLine("------------");
}
static void InGrossbuchstaben(ref string s)
{
s = s.ToUpper();
......
using System;
using System.Runtime.Intrinsics.X86;
namespace _11_UebgMoTransformator
{
......@@ -11,7 +12,7 @@ namespace _11_UebgMoTransformator
class Program
{
delegate T MeineFkt<T>(T x);
static T[] ApplyAll<T>(MeineFkt<T> fkt, params T[] werte)
static T[] ApplyAll<T>(MeineFkt<T> fkt, params T[] werte)
{
T[] erg = new T[werte.Length];
Console.Write("APPLY ALL: ");
......@@ -24,12 +25,43 @@ namespace _11_UebgMoTransformator
return erg;
}
//static string[] ApplyAll(MeineFkt<string> fkt, params string[] werte)
//{
// T[] erg = new T[werte.Length];
// Console.Write("APPLY ALL: ");
// for (int i = 0; i < werte.Length; i++)
// {
// erg[i] = fkt(werte[i]);
// Console.Write($"{erg[i]} ");
// }
// Console.WriteLine();
// return erg;
//}
static void Verdichten(ref string [] werte)
{
//int anz = werte.Length / 2;
//string[] erg = new string[anz];
//for (int i = 0; i < 2*anz; i+=2)
//{
// erg[i / 2] = werte[i] + "&" + werte[i + 1];
//}
//werte = erg;
string[] erg = new string[2];
erg[0] = "ANTON&BERTA";
erg[1] = "CLAUDIA&DIETER";
werte = erg;
}
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
// Anton, Berta, Claudia, Dieter --->
// ANTON, BERTA, CLAUDIA, DIETER --->
// ANTON&BERTA, CLAUDIA&DIETER
string[] namen = { "Anton", "Berta", "Claudia", "Dieter" };
Verdichten(ref namen);
foreach (var item in namen)
Console.WriteLine(item);
}
}
}
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v3.1",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v3.1": {
"11 UebgMoTransformator/1.0.0": {
"runtime": {
"11 UebgMoTransformator.dll": {}
}
}
}
},
"libraries": {
"11 UebgMoTransformator/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\wienkop\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\wienkop\\.nuget\\packages"
]
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}
\ No newline at end of file
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\bin\Debug\netcoreapp3.1\11 UebgMoTransformator.exe
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\bin\Debug\netcoreapp3.1\11 UebgMoTransformator.deps.json
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\bin\Debug\netcoreapp3.1\11 UebgMoTransformator.runtimeconfig.json
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\bin\Debug\netcoreapp3.1\11 UebgMoTransformator.runtimeconfig.dev.json
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\bin\Debug\netcoreapp3.1\11 UebgMoTransformator.dll
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\bin\Debug\netcoreapp3.1\11 UebgMoTransformator.pdb
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\obj\Debug\netcoreapp3.1\11 UebgMoTransformator.csprojAssemblyReference.cache
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\obj\Debug\netcoreapp3.1\11 UebgMoTransformator.AssemblyInfoInputs.cache
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\obj\Debug\netcoreapp3.1\11 UebgMoTransformator.AssemblyInfo.cs
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\obj\Debug\netcoreapp3.1\11 UebgMoTransformator.csproj.CoreCompileInputs.cache
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\obj\Debug\netcoreapp3.1\11 UebgMoTransformator.dll
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\obj\Debug\netcoreapp3.1\11 UebgMoTransformator.pdb
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\11 UebgMoTransformator\obj\Debug\netcoreapp3.1\11 UebgMoTransformator.genruntimeconfig.cache
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment