From 8b62da8c236234c141dcbd677b44bf2bccbea72a Mon Sep 17 00:00:00 2001 From: sebi Date: Mon, 5 Feb 2024 09:23:53 +0100 Subject: [PATCH] .NET 7 Sorting --- Exercises_C_Sharp_Lections.csproj | 2 +- Program.cs | 32 +++++++++++++++++++++++++++---- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/Exercises_C_Sharp_Lections.csproj b/Exercises_C_Sharp_Lections.csproj index 91b464a..f02677b 100644 --- a/Exercises_C_Sharp_Lections.csproj +++ b/Exercises_C_Sharp_Lections.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net7.0 enable enable diff --git a/Program.cs b/Program.cs index ae7e7b9..1f91a35 100644 --- a/Program.cs +++ b/Program.cs @@ -174,7 +174,11 @@ namespace Exercises_C_Sharp //************************ ExerciseGroup flowchartElements = new() { - Name = "9. Flowcharts" + Name = "9. Flowcharts", + ElementList = new() + { + new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start} + } }; @@ -186,15 +190,15 @@ namespace Exercises_C_Sharp ExerciseGroup methodsElements = new() { Name = "18. Methoden", - ElementList = - [ + ElementList = new() + { new(){Name = "Übung 1", Method = E18_Methods.Exercise_1.Start}, new(){Name = "Übung 2", Method = E18_Methods.Exercise_2.Start}, new(){Name = "Übung 3", Method = E18_Methods.Exercise_3.Start}, new(){Name = "Übung 4", Method = E18_Methods.Exercise_4.Start}, new(){Name = "Übung 5", Method = E18_Methods.Exercise_5.Start}, new(){Name = "Übung 6", Method = E18_Methods.Exercise_6.Start} - ] + } }; //************************ @@ -236,6 +240,24 @@ namespace Exercises_C_Sharp } }; //************************ + //*********Sorting********** + //************************ + ExerciseGroup sortingElements = new ExerciseGroup() + { + Name = "21. Sortieren", + ElementList = new List() + { + new(){Name = "Übung 1", Method = E21_Sorting.Exercise_1.Start}, + new(){Name = "Übung 2", Method = E21_Sorting.Exercise_2.Start}, + new(){Name = "Übung 3", Method = E21_Sorting.Exercise_3.Start}, + new(){Name = "Übung 4", Method = E21_Sorting.Exercise_4.Start}, + new(){Name = "Übung 5", Method = E21_Sorting.Exercise_5.Start}, + new(){Name = "Übung 6", Method = E21_Sorting.Exercise_6.Start}, + new(){Name = "Übung 7", Method = E21_Sorting.Exercise_7.Start}, + new(){Name = "Übung 8", Method = E21_Sorting.Exercise_8.Start} + } + }; + //************************ //*********Enums********** //************************ ExerciseGroup enumElements = new ExerciseGroup() @@ -258,6 +280,7 @@ namespace Exercises_C_Sharp new ExerciseElement(){Name = "Übung 13", Method = E24_Enumns.Exercise_13.Start} } }; + //************************ //*********Tuple********** //************************ @@ -506,6 +529,7 @@ namespace Exercises_C_Sharp methodsElements, listElements, + sortingElements, enumElements, ueberladungElements, moredimensionalArrayElements,