diff --git a/.vs/prog2-ss2020-wienkop/DesignTimeBuild/.dtbcache.v2 b/.vs/prog2-ss2020-wienkop/DesignTimeBuild/.dtbcache.v2 index 89336a2d9bcbcca13ec8d49cf84d8e30d1002035..600347930f223873cdbd06504b4951256c09ab56 100644 Binary files a/.vs/prog2-ss2020-wienkop/DesignTimeBuild/.dtbcache.v2 and b/.vs/prog2-ss2020-wienkop/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/prog2-ss2020-wienkop/v16/.suo b/.vs/prog2-ss2020-wienkop/v16/.suo index 18b0d7450d9d1c740887e9c4d804138c162ed839..c006b51abeead5c36c576687c7e61e508e35bf88 100644 Binary files a/.vs/prog2-ss2020-wienkop/v16/.suo and b/.vs/prog2-ss2020-wienkop/v16/.suo differ diff --git a/01Buergeramt-Di/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Di.csprojAssemblyReference.cache b/01Buergeramt-Di/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Di.csprojAssemblyReference.cache index e23245258eaf6b6145a13830bacb66ca8fd7c885..75c16613d637ba1aee3feac158410536d13849e8 100644 Binary files a/01Buergeramt-Di/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Di.csprojAssemblyReference.cache and b/01Buergeramt-Di/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Di.csprojAssemblyReference.cache differ diff --git a/01Buergeramt/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Mo.csprojAssemblyReference.cache b/01Buergeramt/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Mo.csprojAssemblyReference.cache index 475e9f25ddab19c98e99fb9760c6360cd0369394..7c4934efa789ae0c72b5608c744eb228ecdeac61 100644 Binary files a/01Buergeramt/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Mo.csprojAssemblyReference.cache and b/01Buergeramt/obj/Debug/netcoreapp3.1/01Uebg_Buergeramt-Mo.csprojAssemblyReference.cache differ diff --git a/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache b/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache index 308f84f1bd32b1f7e1467356eb1ac40d7da08d5e..4604200e8108358ecfd89e86f2787c9523eed2ff 100644 Binary files a/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache and b/01Indexer/obj/Debug/netcoreapp3.1/01Indexer.csprojAssemblyReference.cache differ diff --git a/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache b/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache index b1a2ab00e21075ae3f51a0172d319459c031d264..50beef42e5ef19628fe73d78013cf307822ef6ea 100644 Binary files a/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache and b/01KlassenWiederholung/obj/Debug/netcoreapp3.1/01KlassenWiederholung.csprojAssemblyReference.cache differ diff --git a/01OperatorOverloading/obj/Debug/netcoreapp3.1/01OperatorOverloading.csprojAssemblyReference.cache b/01OperatorOverloading/obj/Debug/netcoreapp3.1/01OperatorOverloading.csprojAssemblyReference.cache index 9dfc37ed889ff4d2deed3ec1295b3086aa3c45af..d9eae35234dacaf5d718f698e8a5e7ced3ac76bd 100644 Binary files a/01OperatorOverloading/obj/Debug/netcoreapp3.1/01OperatorOverloading.csprojAssemblyReference.cache and b/01OperatorOverloading/obj/Debug/netcoreapp3.1/01OperatorOverloading.csprojAssemblyReference.cache differ diff --git a/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache b/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache index ed51084113c37d43a99e791dd0a169f2b0c6b55a..9bb701fecadc48763763df796398b7861ff2f7ec 100644 Binary files a/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache and b/01OperatorTrueFalse/obj/Debug/netcoreapp3.1/01OperatorTrueFalse.csprojAssemblyReference.cache differ diff --git a/02 UebgSa FiFoListe/obj/Debug/netcoreapp3.1/02 UebgSa FiFoListe.csprojAssemblyReference.cache b/02 UebgSa FiFoListe/obj/Debug/netcoreapp3.1/02 UebgSa FiFoListe.csprojAssemblyReference.cache index 74fe67b1ca671095970d4a7fbcae2417231e8f41..a0fbfd12797557adefa2aaaacd9d5126dec64303 100644 Binary files a/02 UebgSa FiFoListe/obj/Debug/netcoreapp3.1/02 UebgSa FiFoListe.csprojAssemblyReference.cache and b/02 UebgSa FiFoListe/obj/Debug/netcoreapp3.1/02 UebgSa FiFoListe.csprojAssemblyReference.cache differ diff --git a/02VerketteteListe/obj/Debug/netcoreapp3.1/02VerketteteListe-1Intro.csprojAssemblyReference.cache b/02VerketteteListe/obj/Debug/netcoreapp3.1/02VerketteteListe-1Intro.csprojAssemblyReference.cache index 75c16613d637ba1aee3feac158410536d13849e8..e84921a470a178d6c34a6d16975b66db84b52171 100644 Binary files a/02VerketteteListe/obj/Debug/netcoreapp3.1/02VerketteteListe-1Intro.csprojAssemblyReference.cache and b/02VerketteteListe/obj/Debug/netcoreapp3.1/02VerketteteListe-1Intro.csprojAssemblyReference.cache differ diff --git a/03 UebgDi ZyklischeListe/obj/Debug/netcoreapp3.1/03 UebgDi ZyklischeListe.csprojAssemblyReference.cache b/03 UebgDi ZyklischeListe/obj/Debug/netcoreapp3.1/03 UebgDi ZyklischeListe.csprojAssemblyReference.cache index 74fe67b1ca671095970d4a7fbcae2417231e8f41..a0fbfd12797557adefa2aaaacd9d5126dec64303 100644 Binary files a/03 UebgDi ZyklischeListe/obj/Debug/netcoreapp3.1/03 UebgDi ZyklischeListe.csprojAssemblyReference.cache and b/03 UebgDi ZyklischeListe/obj/Debug/netcoreapp3.1/03 UebgDi ZyklischeListe.csprojAssemblyReference.cache differ diff --git a/03Praktikumsaufgabe2Liste/.vs/Praktikumsaufgabe2Liste/DesignTimeBuild/.dtbcache.v2 b/03Praktikumsaufgabe2Liste/.vs/Praktikumsaufgabe2Liste/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000000000000000000000000000000000000..67df8e64efbce4c17cbfa20dda7c94d1fcf56f2d Binary files /dev/null and b/03Praktikumsaufgabe2Liste/.vs/Praktikumsaufgabe2Liste/DesignTimeBuild/.dtbcache.v2 differ diff --git a/03Praktikumsaufgabe2Liste/.vs/Praktikumsaufgabe2Liste/v16/.suo b/03Praktikumsaufgabe2Liste/.vs/Praktikumsaufgabe2Liste/v16/.suo new file mode 100644 index 0000000000000000000000000000000000000000..32c63d79621248ab9247943a0773647fa64c2546 Binary files /dev/null and b/03Praktikumsaufgabe2Liste/.vs/Praktikumsaufgabe2Liste/v16/.suo differ diff --git a/03Praktikumsaufgabe2Liste/03Praktikumsaufgabe2Liste.csproj b/03Praktikumsaufgabe2Liste/03Praktikumsaufgabe2Liste.csproj new file mode 100644 index 0000000000000000000000000000000000000000..c73e0d1692ab38cc8596bbd32ae080d903aaa778 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/03Praktikumsaufgabe2Liste.csproj @@ -0,0 +1,8 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp3.1</TargetFramework> + </PropertyGroup> + +</Project> diff --git a/03Praktikumsaufgabe2Liste/Program.cs b/03Praktikumsaufgabe2Liste/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..82e9c7a513ef0e043f91fb6b01c7ab647b18ddd0 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/Program.cs @@ -0,0 +1,210 @@ +using System; +using System.ComponentModel; +using System.IO; +using System.Runtime.ExceptionServices; + +namespace Praktikumsaufgabe2Liste +{ + class WordCount + { + class LItem + { + public string text; + public int count; + public LItem next; + public LItem(string text, int count = 1) + { + this.text = text; + this.count = count; + next = null; + } + public override string ToString() => $"{text} -- {count}"; + } + + LItem first = null, last = null; + public WordCount() { } + public WordCount(params string[] textlist) + { + SortedUpdate(textlist); + } + private void AddLast(string text, int count = 1) + { + LItem neu = new LItem(text, count); + if (last == null) + first = last = neu; + else + last = last.next = neu; + } + private void AddFirst(string text, int count = 1) + { + LItem neu = new LItem(text, count); + if (last == null) + first = last = neu; + else + { + neu.next = first; + first = neu; + } + } + public void SortedUpdate(params string[] text) + { + foreach (var item in text) + { + SortedUpdate(item); + } + } + public void SortedUpdate(string text) + { + if (first == null || text.CompareTo(last.text) > 0) + AddLast(text); + else + { + int cmp = text.CompareTo(first.text); + if (cmp < 0) + AddFirst(text); + else + { + if (cmp == 0) + first.count++; + else + { + LItem neu = new LItem(text); + LItem tmp = first; + + while ((cmp = tmp.next.text.CompareTo(text)) < 0) + tmp = tmp.next; + + if (cmp == 0) + tmp.next.count++; + else + { + neu.next = tmp.next; + tmp.next = neu; + } + } + } + } + } + public void Print(int min = 1) + { + for (LItem item = first; item != null; item = item.next) + { + if (item.count >= min) + Console.WriteLine(item); + } + } + public void Reverse() + { + LItem newStart = null; + LItem item = first; + while (item != null) + { + LItem next = item.next; + item.next = newStart; + newStart = item; + item = next; + } + last = first; + first = newStart; + } + public WordCount Filter(string pattern) + { + WordCount wcNew = new WordCount(); + for (LItem item = first; item != null; item = item.next) + { + if (item.text.Contains(pattern)) + wcNew.AddLast(item.text, item.count); + } + return wcNew; + } + public void Delete(string text) + { + if (first == null) + return; + if (first.text.CompareTo(text) == 0) + { + first = first.next; + // Falls Liste jetzt leer ist + if (first == null) + last = null; + } + else + { + LItem tmp = first; + while (tmp.next != null && tmp.next.text.CompareTo(text) != 0) + tmp = tmp.next; + if (tmp.next != null) + { + tmp.next = tmp.next.next; + if (tmp.next == null) + last = tmp; + } + } + } + public int this[string text] + { + get + { + for (LItem item = first; item != null; item = item.next) + { + if (item.text == text) + return item.count; + } + return -1; + } + } + } + class Program + { + static void Main(string[] args) + { + string[] text = + { + "Zu Dionys, dem Tyrannen, schlich ", + "Damon, den Dolch im Gewande: ", + "Ihn schlugen die Häscher in Bande, ", + "'Was wolltest du mit dem Dolche? sprich!'", + "Entgegnet ihm finster der Wüterich.", + "'Die Stadt vom Tyrannen befreien!'", + "'Das sollst du am Kreuze bereuen.'", + + "Ich bin, spricht jener, zu sterben bereit ", + "Und bitte nicht um mein Leben: ", + "Doch willst du Gnade mir geben,", + "Ich flehe dich um drei Tage Zeit,", + "Bis ich die Schwester dem Gatten gefreit; ", + "Ich lasse den Freund dir als Bürgen, ", + "Ihn magst du, entrinn' ich, erwürgen.'", + + "Da lächelt der König mit arger List", + "Und spricht nach kurzem Bedenken: ", + "'Drei Tage will ich dir schenken; ", + "Doch wisse, wenn sie verstrichen, die Frist, ", + "Eh' du zurück mir gegeben bist, ", + "So muß er statt deiner erblassen,", + "Doch dir ist die Strafe erlassen.'" + }; + + WordCount count1 = new WordCount("Alf", "Bart", "Charlie", "Dora", "Emil", "Bart", "Charlie", "Dora", "Emil", "Charlie", "Dora", "Emil", "Dora", "Emil", "Emil"); + WordCount count2 = new WordCount(); + char[] seperatoren = { '\'', ',', '.', '?', '!', ' ', ';' }; + foreach (var zeile in text) + { + count2.SortedUpdate(zeile.Split(seperatoren, StringSplitOptions.RemoveEmptyEntries)); + } + count1.Print(); + Console.WriteLine("---------"); + count1.Reverse(); + count1.Delete("Alf"); + count1.Delete("Emil"); + count1.Delete("Charlie"); + count1.Print(); + Console.WriteLine(count1["Dora"]); + Console.WriteLine("---------"); + count2.Print(3); + Console.WriteLine("---------"); + WordCount count3 = count2.Filter("ich"); + count3.Print(); + } + } +} diff --git a/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.deps.json b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.deps.json new file mode 100644 index 0000000000000000000000000000000000000000..4c8be3bf696f935cad4ccd07c2c1cdf9aa2031bd --- /dev/null +++ b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "Praktikumsaufgabe2Liste/1.0.0": { + "runtime": { + "Praktikumsaufgabe2Liste.dll": {} + } + } + } + }, + "libraries": { + "Praktikumsaufgabe2Liste/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.dll b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.dll new file mode 100644 index 0000000000000000000000000000000000000000..1de8e226dd0f4665b9e6f8dde2b815de45378b9c Binary files /dev/null and b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.dll differ diff --git a/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.exe b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.exe new file mode 100644 index 0000000000000000000000000000000000000000..22c465593093eb1443273a927eeb7f6c107e51c8 Binary files /dev/null and b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.exe differ diff --git a/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.pdb b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.pdb new file mode 100644 index 0000000000000000000000000000000000000000..d4086c4f554133fc50e73f0ab8ee0b1b6117ede4 Binary files /dev/null and b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.pdb differ diff --git a/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.runtimeconfig.dev.json b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.runtimeconfig.dev.json new file mode 100644 index 0000000000000000000000000000000000000000..3becea41545888f98131d88ad51766e8ddde3bce --- /dev/null +++ b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.runtimeconfig.dev.json @@ -0,0 +1,8 @@ +{ + "runtimeOptions": { + "additionalProbingPaths": [ + "C:\\Users\\wienkop\\.dotnet\\store\\|arch|\\|tfm|", + "C:\\Users\\wienkop\\.nuget\\packages" + ] + } +} \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.runtimeconfig.json b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.runtimeconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..bc456d7868bb54ec1809da30e339cd43f0a8a09c --- /dev/null +++ b/03Praktikumsaufgabe2Liste/bin/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "netcoreapp3.1", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "3.1.0" + } + } +} \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/obj/03Praktikumsaufgabe2Liste.csproj.nuget.dgspec.json b/03Praktikumsaufgabe2Liste/obj/03Praktikumsaufgabe2Liste.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..19a70fcfe4859b759301e945f4caf16c9ac7b52b --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/03Praktikumsaufgabe2Liste.csproj.nuget.dgspec.json @@ -0,0 +1,60 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\03Praktikumsaufgabe2Liste.csproj": {} + }, + "projects": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\03Praktikumsaufgabe2Liste.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\03Praktikumsaufgabe2Liste.csproj", + "projectName": "03Praktikumsaufgabe2Liste", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\03Praktikumsaufgabe2Liste.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/obj/03Praktikumsaufgabe2Liste.csproj.nuget.g.props b/03Praktikumsaufgabe2Liste/obj/03Praktikumsaufgabe2Liste.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..dcb699c0e9a92aa0db59dc7c324b470d0dce8c74 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/03Praktikumsaufgabe2Liste.csproj.nuget.g.props @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> + <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> + <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> + <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> + <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\wienkop\.nuget\packages\</NuGetPackageFolders> + <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> + <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.5.0</NuGetToolVersion> + </PropertyGroup> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/obj/03Praktikumsaufgabe2Liste.csproj.nuget.g.targets b/03Praktikumsaufgabe2Liste/obj/03Praktikumsaufgabe2Liste.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..53cfaa19b16f3769b2bfc33db3b5c0053c16fdba --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/03Praktikumsaufgabe2Liste.csproj.nuget.g.targets @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.AssemblyInfo.cs b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..a349df9a5e6b9e05508010773f19d4b143beb63d --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// </auto-generated> +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("03Praktikumsaufgabe2Liste")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("03Praktikumsaufgabe2Liste")] +[assembly: System.Reflection.AssemblyTitleAttribute("03Praktikumsaufgabe2Liste")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.AssemblyInfoInputs.cache b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..1bcd3d4c263bce2b362926e0757da7f1e2026bf4 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +5bc38c22cc66ed03f144ee55c45be7d9ddd5330f diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.assets.cache b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..5ab9f5d7289fe0fff8c9d403fbefa920184b9672 Binary files /dev/null and b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.assets.cache differ diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.csprojAssemblyReference.cache b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.csprojAssemblyReference.cache new file mode 100644 index 0000000000000000000000000000000000000000..74fe67b1ca671095970d4a7fbcae2417231e8f41 Binary files /dev/null and b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/03Praktikumsaufgabe2Liste.csprojAssemblyReference.cache differ diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.AssemblyInfo.cs b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..b73c756f0364839eb80b4f16356e98b4c0a72497 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// </auto-generated> +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Praktikumsaufgabe2Liste")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Praktikumsaufgabe2Liste")] +[assembly: System.Reflection.AssemblyTitleAttribute("Praktikumsaufgabe2Liste")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.AssemblyInfoInputs.cache b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..0b57dcec35159b931913a1dc58d33ffa4dce1c04 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +b8dad1c41c9703359db674301c498be5d61ef5fb diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.assets.cache b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..9dcc9b6b1086d6ec13995310671df21b626b3324 Binary files /dev/null and b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.assets.cache differ diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.csproj.CoreCompileInputs.cache b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..866b744e18d17bd43f4fc4b66cbb3dbc817b1992 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +c0523642d3f3714f80c0cf31b3f8720f51a0bc09 diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.csproj.FileListAbsolute.txt b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.csproj.FileListAbsolute.txt new file mode 100644 index 0000000000000000000000000000000000000000..9d6441b76f032dd34a858dfcfc2f3c864f4c03a9 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.csproj.FileListAbsolute.txt @@ -0,0 +1,26 @@ +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.exe +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.deps.json +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.runtimeconfig.json +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.runtimeconfig.dev.json +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.dll +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.pdb +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.csprojAssemblyReference.cache +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.csproj.CoreCompileInputs.cache +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.AssemblyInfoInputs.cache +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.AssemblyInfo.cs +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.dll +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.pdb +D:\Dokumente\Visual Studio Projects\Programmieren\Prüfungen\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.genruntimeconfig.cache +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.exe +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.deps.json +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.runtimeconfig.json +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.runtimeconfig.dev.json +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.dll +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\bin\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.pdb +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.csprojAssemblyReference.cache +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.csproj.CoreCompileInputs.cache +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.AssemblyInfoInputs.cache +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.AssemblyInfo.cs +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.dll +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.pdb +C:\Users\wienkop\Desktop\Praktikumsaufgabe2Liste\obj\Debug\netcoreapp3.1\Praktikumsaufgabe2Liste.genruntimeconfig.cache diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.csprojAssemblyReference.cache b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.csprojAssemblyReference.cache new file mode 100644 index 0000000000000000000000000000000000000000..e84921a470a178d6c34a6d16975b66db84b52171 Binary files /dev/null and b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.csprojAssemblyReference.cache differ diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.dll b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.dll new file mode 100644 index 0000000000000000000000000000000000000000..1de8e226dd0f4665b9e6f8dde2b815de45378b9c Binary files /dev/null and b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.dll differ diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.exe b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.exe new file mode 100644 index 0000000000000000000000000000000000000000..22c465593093eb1443273a927eeb7f6c107e51c8 Binary files /dev/null and b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.exe differ diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.genruntimeconfig.cache b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.genruntimeconfig.cache new file mode 100644 index 0000000000000000000000000000000000000000..34bedab819ef1631d37d6e87ef9a716c545a105e --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.genruntimeconfig.cache @@ -0,0 +1 @@ +86c8e15dd33445635927cfaf398408205fd11473 diff --git a/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.pdb b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.pdb new file mode 100644 index 0000000000000000000000000000000000000000..d4086c4f554133fc50e73f0ab8ee0b1b6117ede4 Binary files /dev/null and b/03Praktikumsaufgabe2Liste/obj/Debug/netcoreapp3.1/Praktikumsaufgabe2Liste.pdb differ diff --git a/03Praktikumsaufgabe2Liste/obj/Praktikumsaufgabe2Liste.csproj.nuget.dgspec.json b/03Praktikumsaufgabe2Liste/obj/Praktikumsaufgabe2Liste.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..3cd08cb950ef6e600f4b87bdd4cd0e1a57d9c406 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Praktikumsaufgabe2Liste.csproj.nuget.dgspec.json @@ -0,0 +1,60 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\Praktikumsaufgabe2Liste.csproj": {} + }, + "projects": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\Praktikumsaufgabe2Liste.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\Praktikumsaufgabe2Liste.csproj", + "projectName": "Praktikumsaufgabe2Liste", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\Praktikumsaufgabe2Liste.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/obj/Praktikumsaufgabe2Liste.csproj.nuget.g.props b/03Praktikumsaufgabe2Liste/obj/Praktikumsaufgabe2Liste.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..dcb699c0e9a92aa0db59dc7c324b470d0dce8c74 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Praktikumsaufgabe2Liste.csproj.nuget.g.props @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> + <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> + <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> + <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> + <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\wienkop\.nuget\packages\</NuGetPackageFolders> + <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> + <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.5.0</NuGetToolVersion> + </PropertyGroup> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/obj/Praktikumsaufgabe2Liste.csproj.nuget.g.targets b/03Praktikumsaufgabe2Liste/obj/Praktikumsaufgabe2Liste.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..53cfaa19b16f3769b2bfc33db3b5c0053c16fdba --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/Praktikumsaufgabe2Liste.csproj.nuget.g.targets @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/obj/project.assets.json b/03Praktikumsaufgabe2Liste/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..dbe1b83f48a171a1d7c163a51b802ff4e6cc5344 --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/project.assets.json @@ -0,0 +1,65 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\wienkop\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\03Praktikumsaufgabe2Liste.csproj", + "projectName": "03Praktikumsaufgabe2Liste", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\03Praktikumsaufgabe2Liste.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/03Praktikumsaufgabe2Liste/obj/project.nuget.cache b/03Praktikumsaufgabe2Liste/obj/project.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..563b30bb08b6e9a3999d6a4824d47e80c125263e --- /dev/null +++ b/03Praktikumsaufgabe2Liste/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "blaAZiOzWQ8+UuBPbPJojaco5AQgMaRtdm4efxLa48tQ2JeUi8aok3jj0JMFrEMDgCgzWMMnFTW4p3eOmCI0kw==", + "success": true, + "projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\03Praktikumsaufgabe2Liste\\03Praktikumsaufgabe2Liste.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/05 UebgDi Warenwirtschaft/05 UebgDi Warenwirtschaft.csproj b/05 UebgDi Warenwirtschaft/05 UebgDi Warenwirtschaft.csproj new file mode 100644 index 0000000000000000000000000000000000000000..3a8d9116a909537a5a0d5f89ba0775d9c7f21719 --- /dev/null +++ b/05 UebgDi Warenwirtschaft/05 UebgDi Warenwirtschaft.csproj @@ -0,0 +1,9 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp3.1</TargetFramework> + <RootNamespace>_05_UebgDi_Warenwirtschaft</RootNamespace> + </PropertyGroup> + +</Project> diff --git a/05 UebgDi Warenwirtschaft/Program.cs b/05 UebgDi Warenwirtschaft/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..249999e2833af1f46770efa509f1f72295807053 --- /dev/null +++ b/05 UebgDi Warenwirtschaft/Program.cs @@ -0,0 +1,55 @@ +using System; + +namespace _05_UebgDi_Warenwirtschaft +{ + // Programmieren Sie ein rudimentäres System zur Verwaltung beliebiger Produkte + // Jedes Produkt soll die folgenden Eigenschaften besitzen, + // int stueckzahl, double preis, string name + // Es soll eigene (abstract oder nicht-abstract) Klassen für einzelne Produkte mit individuellen Datenfeldern geben: + // - Metallwaren mit den Unterklassen Schrauben und Nägel + // - Milchprodukte mit den Unterklassen Joghurt und Butter + // - Gartenprodukte mit den Unterklassen Pflanzen und Container; Schreiben Sie für die Pflanze eine besondere + // Methode, die nur Pflanzen haben. + // Erstellen Sie diese Klassen/Unterklassen mit geeigneten Konstruktoren, Basisklassenaufrufen, usw. + // Entscheiden Sie, wie Sie vererben wollen (virtual/abstract) + // Geben Sie für jede Klasse - wo sinnvoll - eine Überschreibung der ToString()-Methode an + // Legen Sie in Main() ein Feld mit einem Objekt je Klasse an, geben Sie alle Elemente in einer Schleife aus + // und schreiben Sie eine Methode, die z.B. nach der Pflanze über den Namen sucht und dieses Objekt zurückliefert + // Rufen Sie dann für die Pflanze diese besondere Methode auf. + abstract class Produkt + { + int stueckzahl; + double preis; + public string Name { get; protected set; } + // protected: Die Methoden dieser Klasse und die Methoden der abgeleiteten Klassen + // dürfen den set aufrufen. + public Produkt(int stueckzahl, double preis, string name) + { + this.stueckzahl = stueckzahl; + this.preis = preis; + this.Name = name; + } + public double Wert() => preis * stueckzahl; + //public abstract string Zeichnen(); + } + abstract class Gartenprodukte : Produkt + { + public Gartenprodukte(int stückzahl, double preis, string name) + : base(stückzahl, preis, name) { } + } + class Pflanzen : Gartenprodukte + { + + + } + class Program + { + static void Main(string[] args) + { + Produkt[] produkte = new Produkt[3]; + produkte[0] = new Pflanzen(10, 0.35, "Geranien", Pflanzen.Pflanzentyp.zier); + produkte[1] = new Pflanzen(10, 0.55, "Salat", Pflanzen.Pflanzentyp.nutz); + + } + } +} diff --git a/05 UebgDi Warenwirtschaft/obj/05 UebgDi Warenwirtschaft.csproj.nuget.dgspec.json b/05 UebgDi Warenwirtschaft/obj/05 UebgDi Warenwirtschaft.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..30894f65d23d2e89035ed09801629c8659234b0e --- /dev/null +++ b/05 UebgDi Warenwirtschaft/obj/05 UebgDi Warenwirtschaft.csproj.nuget.dgspec.json @@ -0,0 +1,60 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgDi Warenwirtschaft\\05 UebgDi Warenwirtschaft.csproj": {} + }, + "projects": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgDi Warenwirtschaft\\05 UebgDi Warenwirtschaft.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgDi Warenwirtschaft\\05 UebgDi Warenwirtschaft.csproj", + "projectName": "05 UebgDi Warenwirtschaft", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgDi Warenwirtschaft\\05 UebgDi Warenwirtschaft.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgDi Warenwirtschaft\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/05 UebgDi Warenwirtschaft/obj/05 UebgDi Warenwirtschaft.csproj.nuget.g.props b/05 UebgDi Warenwirtschaft/obj/05 UebgDi Warenwirtschaft.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..dcb699c0e9a92aa0db59dc7c324b470d0dce8c74 --- /dev/null +++ b/05 UebgDi Warenwirtschaft/obj/05 UebgDi Warenwirtschaft.csproj.nuget.g.props @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> + <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> + <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> + <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> + <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\wienkop\.nuget\packages\</NuGetPackageFolders> + <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> + <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.5.0</NuGetToolVersion> + </PropertyGroup> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/05 UebgDi Warenwirtschaft/obj/05 UebgDi Warenwirtschaft.csproj.nuget.g.targets b/05 UebgDi Warenwirtschaft/obj/05 UebgDi Warenwirtschaft.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..53cfaa19b16f3769b2bfc33db3b5c0053c16fdba --- /dev/null +++ b/05 UebgDi Warenwirtschaft/obj/05 UebgDi Warenwirtschaft.csproj.nuget.g.targets @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" standalone="no"?> +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/05 UebgDi Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgDi Warenwirtschaft.AssemblyInfo.cs b/05 UebgDi Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgDi Warenwirtschaft.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..a6477d130d797728f9cb5af34c1413ba0d9aa776 --- /dev/null +++ b/05 UebgDi Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgDi Warenwirtschaft.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// </auto-generated> +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("05 UebgDi Warenwirtschaft")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("05 UebgDi Warenwirtschaft")] +[assembly: System.Reflection.AssemblyTitleAttribute("05 UebgDi Warenwirtschaft")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/05 UebgDi Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgDi Warenwirtschaft.AssemblyInfoInputs.cache b/05 UebgDi Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgDi Warenwirtschaft.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..b23281f2f9762b0257fb392fd97d07a541a508b8 --- /dev/null +++ b/05 UebgDi Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgDi Warenwirtschaft.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +c47db249c96597e14bfb5ce09791e1482c9bd6c3 diff --git a/05 UebgDi Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgDi Warenwirtschaft.assets.cache b/05 UebgDi Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgDi Warenwirtschaft.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..f9c7325e1cb39606dbbdd17fb8bdf9d977c5ad22 Binary files /dev/null and b/05 UebgDi Warenwirtschaft/obj/Debug/netcoreapp3.1/05 UebgDi Warenwirtschaft.assets.cache differ diff --git a/05 UebgDi Warenwirtschaft/obj/project.assets.json b/05 UebgDi Warenwirtschaft/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..963761389aaf1826c59052b0f5a7c67a107366e9 --- /dev/null +++ b/05 UebgDi Warenwirtschaft/obj/project.assets.json @@ -0,0 +1,65 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\wienkop\\.nuget\\packages\\": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgDi Warenwirtschaft\\05 UebgDi Warenwirtschaft.csproj", + "projectName": "05 UebgDi Warenwirtschaft", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgDi Warenwirtschaft\\05 UebgDi Warenwirtschaft.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgDi Warenwirtschaft\\obj\\", + "projectStyle": "PackageReference", + "configFilePaths": [ + "C:\\Users\\wienkop\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.201\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/05 UebgDi Warenwirtschaft/obj/project.nuget.cache b/05 UebgDi Warenwirtschaft/obj/project.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..0857ab989172dbaa0ad9d5def44c8688b182738d --- /dev/null +++ b/05 UebgDi Warenwirtschaft/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "8cGdKZ05djkVYAUt8DjVQ3DBEKcTGzPvUeDWZTtTUhJbPfgCHzRFYuAsDe/RDiIv15OXx0E6yt+Hjj3BGlGA0Q==", + "success": true, + "projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\05 UebgDi Warenwirtschaft\\05 UebgDi Warenwirtschaft.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/05 UebgMo Warenwirtschaft/Program.cs b/05 UebgMo Warenwirtschaft/Program.cs index 128bdae13a8c840ec469daf8c653628027af3dfc..92f844c3749608f24a0306ae55077f135f0417d2 100644 --- a/05 UebgMo Warenwirtschaft/Program.cs +++ b/05 UebgMo Warenwirtschaft/Program.cs @@ -16,11 +16,13 @@ namespace _05_UebgMo_Warenwirtschaft // Legen Sie in Main() ein Feld mit einem Objekt je Klasse an, geben Sie alle Elemente in einer Schleife aus // und schreiben Sie eine Methode, die z.B. nach der Pflanze über den Namen sucht und dieses Objekt zurückliefert // Rufen Sie dann für die Pflanze diese besondere Methode auf. - class Produkt + abstract class Produkt { int stueckzahl; double preis; - public string Name { get; private set; } + public string Name { get; protected set; } + // protected: Die Methoden dieser Klasse und die Methoden der abgeleiteten Klassen + // dürfen den set aufrufen. public Produkt(int stueckzahl, double preis, string name) { this.stueckzahl = stueckzahl; @@ -28,8 +30,9 @@ namespace _05_UebgMo_Warenwirtschaft this.Name = name; } public double Wert() => preis * stueckzahl; + //public abstract string Zeichnen(); } - class Gartenprodukte : Produkt + abstract class Gartenprodukte : Produkt { public Gartenprodukte(int stückzahl, double preis, string name) : base(stückzahl, preis, name) { } @@ -52,11 +55,19 @@ namespace _05_UebgMo_Warenwirtschaft { Produkt[] produkte = new Produkt[3]; produkte[0] = new Pflanzen(10, 0.35, "Geranien", Pflanzen.Pflanzentyp.zier); + produkte[1] = new Pflanzen(10, 0.55, "Salat", Pflanzen.Pflanzentyp.nutz); foreach (var item in produkte) { + Console.WriteLine(item.Wert()); if (item.Name == "Geranien") { - (item as Pflanzen).Giessen(); + // item.Gießen(); + Pflanzen p = (Pflanzen) item; + p.Giessen(); + Pflanzen p2 = item as Pflanzen; + ((Pflanzen)item).Giessen(); + if (item is Pflanzen p3) + p3.Giessen(); } } } diff --git a/prog2-ss2020-wienkop.sln b/prog2-ss2020-wienkop.sln index 8232d1d10a14dacd1f367c1d6fd674d92c31e2d7..2982afd7fb0637b7f90d8155cbf9f17b773c1341 100644 --- a/prog2-ss2020-wienkop.sln +++ b/prog2-ss2020-wienkop.sln @@ -50,7 +50,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "04VererbungGrafischeObjekte EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HTMLEngine", "05HTMLEngine\HTMLEngine.csproj", "{BCED82D0-F95F-4D82-9019-2C63D6B3CC8A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "05 UebgMo Warenwirtschaft", "05 UebgMo Warenwirtschaft\05 UebgMo Warenwirtschaft.csproj", "{2CFDBE8A-4925-4E0C-A686-7554394003A6}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "05 UebgMo Warenwirtschaft", "05 UebgMo Warenwirtschaft\05 UebgMo Warenwirtschaft.csproj", "{2CFDBE8A-4925-4E0C-A686-7554394003A6}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "03Praktikumsaufgabe2Liste", "03Praktikumsaufgabe2Liste\03Praktikumsaufgabe2Liste.csproj", "{AD4DC06B-7331-4024-8420-F324A6DF20A3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "05 UebgDi Warenwirtschaft", "05 UebgDi Warenwirtschaft\05 UebgDi Warenwirtschaft.csproj", "{5CAE2147-F5ED-4D54-9FF0-87E7A5AB8AD1}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -146,6 +150,14 @@ Global {2CFDBE8A-4925-4E0C-A686-7554394003A6}.Debug|Any CPU.Build.0 = Debug|Any CPU {2CFDBE8A-4925-4E0C-A686-7554394003A6}.Release|Any CPU.ActiveCfg = Release|Any CPU {2CFDBE8A-4925-4E0C-A686-7554394003A6}.Release|Any CPU.Build.0 = Release|Any CPU + {AD4DC06B-7331-4024-8420-F324A6DF20A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AD4DC06B-7331-4024-8420-F324A6DF20A3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AD4DC06B-7331-4024-8420-F324A6DF20A3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AD4DC06B-7331-4024-8420-F324A6DF20A3}.Release|Any CPU.Build.0 = Release|Any CPU + {5CAE2147-F5ED-4D54-9FF0-87E7A5AB8AD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5CAE2147-F5ED-4D54-9FF0-87E7A5AB8AD1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5CAE2147-F5ED-4D54-9FF0-87E7A5AB8AD1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5CAE2147-F5ED-4D54-9FF0-87E7A5AB8AD1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE