diff --git a/.vs/prog2-ss2020-wienkop/v16/.suo b/.vs/prog2-ss2020-wienkop/v16/.suo index 4b6366c39c3895d5f57cc59148fba9f891e46422..3137df40342d1e4b4e79ba44dece0d5429814d6b 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 e84921a470a178d6c34a6d16975b66db84b52171..9cea71eee3672f3b92eb4ae6a31d4ee576def39e 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/02 Uebg KlasseTimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgMo KlasseTimeOpOverloading.csprojAssemblyReference.cache b/02 Uebg KlasseTimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgMo KlasseTimeOpOverloading.csprojAssemblyReference.cache index 75c16613d637ba1aee3feac158410536d13849e8..fb8b4de2efee802eaa6349069580d22e839ec1be 100644 Binary files a/02 Uebg KlasseTimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgMo KlasseTimeOpOverloading.csprojAssemblyReference.cache and b/02 Uebg KlasseTimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgMo KlasseTimeOpOverloading.csprojAssemblyReference.cache differ diff --git a/02 UebgDi Klassse TimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgDi Klassse TimeOpOverloading.csprojAssemblyReference.cache b/02 UebgDi Klassse TimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgDi Klassse TimeOpOverloading.csprojAssemblyReference.cache index 75c16613d637ba1aee3feac158410536d13849e8..fb8b4de2efee802eaa6349069580d22e839ec1be 100644 Binary files a/02 UebgDi Klassse TimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgDi Klassse TimeOpOverloading.csprojAssemblyReference.cache and b/02 UebgDi Klassse TimeOpOverloading/obj/Debug/netcoreapp3.1/02 UebgDi Klassse TimeOpOverloading.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 e84921a470a178d6c34a6d16975b66db84b52171..9cea71eee3672f3b92eb4ae6a31d4ee576def39e 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/06 UebgMoExceptions/06 UebgMoExceptions.csproj b/06 UebgMoExceptions/06 UebgMoExceptions.csproj new file mode 100644 index 0000000000000000000000000000000000000000..f4d00ac3a774b6fe69ba200ca0dfbc1428956fc4 --- /dev/null +++ b/06 UebgMoExceptions/06 UebgMoExceptions.csproj @@ -0,0 +1,9 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp3.1</TargetFramework> + <RootNamespace>_06_UebgMoExceptions</RootNamespace> + </PropertyGroup> + +</Project> diff --git a/06 UebgMoExceptions/Program.cs b/06 UebgMoExceptions/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..f84a6a11483f1376cc6c13086425470a4e0172cf --- /dev/null +++ b/06 UebgMoExceptions/Program.cs @@ -0,0 +1,19 @@ +using System; + +namespace _06_UebgMoExceptions +{ + // Erstellen Sie eine Dummy-Methode Funktion1, die einen try-catch Block enthält und + // eine zweite Dummy-Methode Funktion2, die wiederum einen try-catch Block besitzt und + // eine Methode Funktion3, die bei ihrem Aufruf einen throw mit einer selbst + // erstellten Fehlerklasse zur Folge hat. Main ruft Funktion1, Funktion1 ruf Funktion2 + // und Funktion2 ruft Funktion3. + // Schreiben Sie entsprechende catch-Methoden, werfen Sie den Fehler weiter + // und stellen Sie sicher, dass das Programm aus keinen Umständen beendet wird! + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + } + } +} diff --git a/06 UebgMoExceptions/obj/06 UebgMoExceptions.csproj.nuget.dgspec.json b/06 UebgMoExceptions/obj/06 UebgMoExceptions.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..89e3b39afbe42226f9caf9b26ce8f35c4a3b28a2 --- /dev/null +++ b/06 UebgMoExceptions/obj/06 UebgMoExceptions.csproj.nuget.dgspec.json @@ -0,0 +1,60 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgMoExceptions\\06 UebgMoExceptions.csproj": {} + }, + "projects": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgMoExceptions\\06 UebgMoExceptions.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgMoExceptions\\06 UebgMoExceptions.csproj", + "projectName": "06 UebgMoExceptions", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgMoExceptions\\06 UebgMoExceptions.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgMoExceptions\\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/06 UebgMoExceptions/obj/06 UebgMoExceptions.csproj.nuget.g.props b/06 UebgMoExceptions/obj/06 UebgMoExceptions.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..dcb699c0e9a92aa0db59dc7c324b470d0dce8c74 --- /dev/null +++ b/06 UebgMoExceptions/obj/06 UebgMoExceptions.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/06 UebgMoExceptions/obj/06 UebgMoExceptions.csproj.nuget.g.targets b/06 UebgMoExceptions/obj/06 UebgMoExceptions.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..53cfaa19b16f3769b2bfc33db3b5c0053c16fdba --- /dev/null +++ b/06 UebgMoExceptions/obj/06 UebgMoExceptions.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/06 UebgMoExceptions/obj/Debug/netcoreapp3.1/06 UebgMoExceptions.AssemblyInfo.cs b/06 UebgMoExceptions/obj/Debug/netcoreapp3.1/06 UebgMoExceptions.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..61c8be725c3b9556515898f8dd992286a6fde33b --- /dev/null +++ b/06 UebgMoExceptions/obj/Debug/netcoreapp3.1/06 UebgMoExceptions.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("06 UebgMoExceptions")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("06 UebgMoExceptions")] +[assembly: System.Reflection.AssemblyTitleAttribute("06 UebgMoExceptions")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/06 UebgMoExceptions/obj/Debug/netcoreapp3.1/06 UebgMoExceptions.AssemblyInfoInputs.cache b/06 UebgMoExceptions/obj/Debug/netcoreapp3.1/06 UebgMoExceptions.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..f995c9201554541b8631e5671ac539c7da909c83 --- /dev/null +++ b/06 UebgMoExceptions/obj/Debug/netcoreapp3.1/06 UebgMoExceptions.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +3a268e4cb226da2fb6a0e36f09877ff4fc7e3c36 diff --git a/06 UebgMoExceptions/obj/Debug/netcoreapp3.1/06 UebgMoExceptions.assets.cache b/06 UebgMoExceptions/obj/Debug/netcoreapp3.1/06 UebgMoExceptions.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..18fd9d9b2d0272a5395f39ea83efca672e8f612d Binary files /dev/null and b/06 UebgMoExceptions/obj/Debug/netcoreapp3.1/06 UebgMoExceptions.assets.cache differ diff --git a/06 UebgMoExceptions/obj/project.assets.json b/06 UebgMoExceptions/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..ee14339ebc41e22759beb0ebf861baac592f2034 --- /dev/null +++ b/06 UebgMoExceptions/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\\06 UebgMoExceptions\\06 UebgMoExceptions.csproj", + "projectName": "06 UebgMoExceptions", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgMoExceptions\\06 UebgMoExceptions.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgMoExceptions\\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/06 UebgMoExceptions/obj/project.nuget.cache b/06 UebgMoExceptions/obj/project.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..b1cadd93f812e0626a694a7ccd505f59b1de8142 --- /dev/null +++ b/06 UebgMoExceptions/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "3NKs7WIMEsn2bSu9GlZrjeGqRXGmKtXnByKIKPzcB6TQhf1ACYrOyLvHLVp7alNjOXHx6XJOvnPyySL119QLbA==", + "success": true, + "projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgMoExceptions\\06 UebgMoExceptions.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/prog2-ss2020-wienkop.sln b/prog2-ss2020-wienkop.sln index 3ed7bffe3634bb3bf2e718e81f1afc202aef6050..7469708ae703b690de6fabd9077f6ace7bf709c9 100644 --- a/prog2-ss2020-wienkop.sln +++ b/prog2-ss2020-wienkop.sln @@ -64,6 +64,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "05Exceptions1", "05Exceptio EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "05Exceptions2", "05Exceptions2\05Exceptions2.csproj", "{53ED5B45-614B-464A-BED8-7361A5E2D5F5}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "06 UebgMoExceptions", "06 UebgMoExceptions\06 UebgMoExceptions.csproj", "{50A6BFF4-DB4F-450C-9194-0C4CE5AD3844}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -182,6 +184,10 @@ Global {53ED5B45-614B-464A-BED8-7361A5E2D5F5}.Debug|Any CPU.Build.0 = Debug|Any CPU {53ED5B45-614B-464A-BED8-7361A5E2D5F5}.Release|Any CPU.ActiveCfg = Release|Any CPU {53ED5B45-614B-464A-BED8-7361A5E2D5F5}.Release|Any CPU.Build.0 = Release|Any CPU + {50A6BFF4-DB4F-450C-9194-0C4CE5AD3844}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {50A6BFF4-DB4F-450C-9194-0C4CE5AD3844}.Debug|Any CPU.Build.0 = Debug|Any CPU + {50A6BFF4-DB4F-450C-9194-0C4CE5AD3844}.Release|Any CPU.ActiveCfg = Release|Any CPU + {50A6BFF4-DB4F-450C-9194-0C4CE5AD3844}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE