diff --git a/.vs/prog2-ss2022-wienkop/DesignTimeBuild/.dtbcache.v2 b/.vs/prog2-ss2022-wienkop/DesignTimeBuild/.dtbcache.v2 index 20237bc15d12180c573a499e3808badb27a8c09b..69ddbc9a5ab067d4c75f2e2b6620755ac60ebbc0 100644 Binary files a/.vs/prog2-ss2022-wienkop/DesignTimeBuild/.dtbcache.v2 and b/.vs/prog2-ss2022-wienkop/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/prog2-ss2022-wienkop/v16/.suo b/.vs/prog2-ss2022-wienkop/v16/.suo index 1ecf4053c34017003c26c7556fe7e816a853c051..1827a8351b095887e3746e1efd985d892c4c6bd6 100644 Binary files a/.vs/prog2-ss2022-wienkop/v16/.suo and b/.vs/prog2-ss2022-wienkop/v16/.suo differ diff --git a/01 StructVsClass/obj/Debug/netcoreapp3.1/01 StructVsClass.csproj.AssemblyReference.cache b/01 StructVsClass/obj/Debug/netcoreapp3.1/01 StructVsClass.csproj.AssemblyReference.cache index f5e894aea93a73e58fa9d4feab241bc197ee1a40..37bc696e536857cd53d26c56c224e9a243178705 100644 Binary files a/01 StructVsClass/obj/Debug/netcoreapp3.1/01 StructVsClass.csproj.AssemblyReference.cache and b/01 StructVsClass/obj/Debug/netcoreapp3.1/01 StructVsClass.csproj.AssemblyReference.cache differ diff --git a/01 UebgDi KlasseMitStaticKonstruktor/obj/Debug/netcoreapp3.1/01 UebgDi KlasseMitStaticKonstruktor.csproj.AssemblyReference.cache b/01 UebgDi KlasseMitStaticKonstruktor/obj/Debug/netcoreapp3.1/01 UebgDi KlasseMitStaticKonstruktor.csproj.AssemblyReference.cache index f5e894aea93a73e58fa9d4feab241bc197ee1a40..37bc696e536857cd53d26c56c224e9a243178705 100644 Binary files a/01 UebgDi KlasseMitStaticKonstruktor/obj/Debug/netcoreapp3.1/01 UebgDi KlasseMitStaticKonstruktor.csproj.AssemblyReference.cache and b/01 UebgDi KlasseMitStaticKonstruktor/obj/Debug/netcoreapp3.1/01 UebgDi KlasseMitStaticKonstruktor.csproj.AssemblyReference.cache differ diff --git a/02 Konstruktoren/02 Konstruktoren.csproj b/02 Konstruktoren/02 Konstruktoren.csproj new file mode 100644 index 0000000000000000000000000000000000000000..eefe14161819cc85c165326870f0e4a05b104f9c --- /dev/null +++ b/02 Konstruktoren/02 Konstruktoren.csproj @@ -0,0 +1,9 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp3.1</TargetFramework> + <RootNamespace>_02_Konstruktoren</RootNamespace> + </PropertyGroup> + +</Project> diff --git a/02 Konstruktoren/Program.cs b/02 Konstruktoren/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..06d2c31bc9a9d80f31fa1b4daebe956983e9cdae --- /dev/null +++ b/02 Konstruktoren/Program.cs @@ -0,0 +1,24 @@ +using System; + +namespace _02_Konstruktoren +{ + class xxx + { + int xx = 0; // xx kommt pro Objektinstanz vor + static int yy = 55; // yy kommt nur einmal für die Klasse vor!!! + + static xxx() { Console.WriteLine("Statischer Konstruktor"); yy = 100; } + + public xxx(int x, int y = 1) { Console.WriteLine("new2"); xx = 5; yy = 99; } + public xxx(int x) { Console.WriteLine("new1"); xx = 1; } + } + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Programmstart"); + xxx x1 = new xxx(1); + xxx x2 = new xxx(1,2); + } + } +} diff --git a/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.deps.json b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.deps.json new file mode 100644 index 0000000000000000000000000000000000000000..190d4b3e4a3f43edb82f18f5184c6ca2fc392535 --- /dev/null +++ b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "02 Konstruktoren/1.0.0": { + "runtime": { + "02 Konstruktoren.dll": {} + } + } + } + }, + "libraries": { + "02 Konstruktoren/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.dll b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.dll new file mode 100644 index 0000000000000000000000000000000000000000..190125eb909dc592c37df8113c4ae75faee12d40 Binary files /dev/null and b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.dll differ diff --git a/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.exe b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.exe new file mode 100644 index 0000000000000000000000000000000000000000..3a708bdc2739f5c46df1f24407778828d2e0eb9b Binary files /dev/null and b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.exe differ diff --git a/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.pdb b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.pdb new file mode 100644 index 0000000000000000000000000000000000000000..83d042c84fc98398b8acf968f4d1f893de594c3d Binary files /dev/null and b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.pdb differ diff --git a/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.runtimeconfig.dev.json b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.runtimeconfig.dev.json new file mode 100644 index 0000000000000000000000000000000000000000..3becea41545888f98131d88ad51766e8ddde3bce --- /dev/null +++ b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.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/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.runtimeconfig.json b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.runtimeconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..bc456d7868bb54ec1809da30e339cd43f0a8a09c --- /dev/null +++ b/02 Konstruktoren/bin/Debug/netcoreapp3.1/02 Konstruktoren.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/02 Konstruktoren/obj/02 Konstruktoren.csproj.nuget.dgspec.json b/02 Konstruktoren/obj/02 Konstruktoren.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..024064a0072a1a317ec296f757eb03cc7fdaabdf --- /dev/null +++ b/02 Konstruktoren/obj/02 Konstruktoren.csproj.nuget.dgspec.json @@ -0,0 +1,62 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 Konstruktoren\\02 Konstruktoren.csproj": {} + }, + "projects": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 Konstruktoren\\02 Konstruktoren.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 Konstruktoren\\02 Konstruktoren.csproj", + "projectName": "02 Konstruktoren", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 Konstruktoren\\02 Konstruktoren.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 Konstruktoren\\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": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "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\\5.0.406\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/02 Konstruktoren/obj/02 Konstruktoren.csproj.nuget.g.props b/02 Konstruktoren/obj/02 Konstruktoren.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..138e00dcf5486a053c4b174cc313c07bc3fb08f7 --- /dev/null +++ b/02 Konstruktoren/obj/02 Konstruktoren.csproj.nuget.g.props @@ -0,0 +1,18 @@ +<?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.11.1</NuGetToolVersion> + </PropertyGroup> + <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <SourceRoot Include="C:\Users\wienkop\.nuget\packages\" /> + </ItemGroup> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/02 Konstruktoren/obj/02 Konstruktoren.csproj.nuget.g.targets b/02 Konstruktoren/obj/02 Konstruktoren.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..53cfaa19b16f3769b2bfc33db3b5c0053c16fdba --- /dev/null +++ b/02 Konstruktoren/obj/02 Konstruktoren.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/02 Konstruktoren/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs b/02 Konstruktoren/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs new file mode 100644 index 0000000000000000000000000000000000000000..ad8dfe1a6310302587a2d0c0111d81b250eb4105 --- /dev/null +++ b/02 Konstruktoren/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// <autogenerated /> +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.AssemblyInfo.cs b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..49a890733bd9a9ec65eb7a6ce4d720c2f5d78c58 --- /dev/null +++ b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.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("02 Konstruktoren")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("02 Konstruktoren")] +[assembly: System.Reflection.AssemblyTitleAttribute("02 Konstruktoren")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.AssemblyInfoInputs.cache b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..07149753371b1388471dbaee3caa55108d6a6c91 --- /dev/null +++ b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +6410dd83436d9276a3e8cd0ba2977fab1c531ad3 diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.GeneratedMSBuildEditorConfig.editorconfig b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000000000000000000000000000000000000..768de25a04d3e0134632a2f6d023d8ad8c0ce6f6 --- /dev/null +++ b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,3 @@ +is_global = true +build_property.RootNamespace = _02_Konstruktoren +build_property.ProjectDir = C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\ diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.assets.cache b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..757757793e08b75c699b36d2eb14cc2cfc9cd6cf Binary files /dev/null and b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.assets.cache differ diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.csproj.AssemblyReference.cache b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.csproj.AssemblyReference.cache new file mode 100644 index 0000000000000000000000000000000000000000..37bc696e536857cd53d26c56c224e9a243178705 Binary files /dev/null and b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.csproj.AssemblyReference.cache differ diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.csproj.CoreCompileInputs.cache b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..eb1e6e4fd953d220f85bdf3cd7d9ba46cbed2259 --- /dev/null +++ b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +8637f38f1b503eb2384b09baa26aa40a13b3f10b diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.csproj.FileListAbsolute.txt b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.csproj.FileListAbsolute.txt new file mode 100644 index 0000000000000000000000000000000000000000..d5361587292d3595119c44898817ceb2ef4c5f0a --- /dev/null +++ b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\bin\Debug\netcoreapp3.1\02 Konstruktoren.exe +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\bin\Debug\netcoreapp3.1\02 Konstruktoren.deps.json +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\bin\Debug\netcoreapp3.1\02 Konstruktoren.runtimeconfig.json +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\bin\Debug\netcoreapp3.1\02 Konstruktoren.runtimeconfig.dev.json +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\bin\Debug\netcoreapp3.1\02 Konstruktoren.dll +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\bin\Debug\netcoreapp3.1\02 Konstruktoren.pdb +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\obj\Debug\netcoreapp3.1\02 Konstruktoren.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\obj\Debug\netcoreapp3.1\02 Konstruktoren.AssemblyInfoInputs.cache +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\obj\Debug\netcoreapp3.1\02 Konstruktoren.AssemblyInfo.cs +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\obj\Debug\netcoreapp3.1\02 Konstruktoren.csproj.CoreCompileInputs.cache +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\obj\Debug\netcoreapp3.1\02 Konstruktoren.dll +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\obj\Debug\netcoreapp3.1\02 Konstruktoren.pdb +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\obj\Debug\netcoreapp3.1\02 Konstruktoren.genruntimeconfig.cache +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 Konstruktoren\obj\Debug\netcoreapp3.1\02 Konstruktoren.csproj.AssemblyReference.cache diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.dll b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.dll new file mode 100644 index 0000000000000000000000000000000000000000..190125eb909dc592c37df8113c4ae75faee12d40 Binary files /dev/null and b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.dll differ diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.genruntimeconfig.cache b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.genruntimeconfig.cache new file mode 100644 index 0000000000000000000000000000000000000000..b7ad8bd13c3abd7b856fe7297beeab056d07dfdd --- /dev/null +++ b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.genruntimeconfig.cache @@ -0,0 +1 @@ +051f365a1a09287b58b6ffdbec802360c649267b diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.pdb b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.pdb new file mode 100644 index 0000000000000000000000000000000000000000..83d042c84fc98398b8acf968f4d1f893de594c3d Binary files /dev/null and b/02 Konstruktoren/obj/Debug/netcoreapp3.1/02 Konstruktoren.pdb differ diff --git a/02 Konstruktoren/obj/Debug/netcoreapp3.1/apphost.exe b/02 Konstruktoren/obj/Debug/netcoreapp3.1/apphost.exe new file mode 100644 index 0000000000000000000000000000000000000000..3a708bdc2739f5c46df1f24407778828d2e0eb9b Binary files /dev/null and b/02 Konstruktoren/obj/Debug/netcoreapp3.1/apphost.exe differ diff --git a/02 Konstruktoren/obj/project.assets.json b/02 Konstruktoren/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..17a563415a55efea58836266ed3b8fb25a52499d --- /dev/null +++ b/02 Konstruktoren/obj/project.assets.json @@ -0,0 +1,67 @@ +{ + "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-ss2022-wienkop\\02 Konstruktoren\\02 Konstruktoren.csproj", + "projectName": "02 Konstruktoren", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 Konstruktoren\\02 Konstruktoren.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 Konstruktoren\\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": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "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\\5.0.406\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/02 Konstruktoren/obj/project.nuget.cache b/02 Konstruktoren/obj/project.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..097ddb5c6c3c1318cbab14acf0abb509c43fc6d0 --- /dev/null +++ b/02 Konstruktoren/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "SrEiQ59uikCD9vk9yP/9OOcPRDSszQWsxtFbBg0ObdXFq6AZqOrvN5+07yqL0su/X0LpejJLCvCY1RcNQymlzQ==", + "success": true, + "projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 Konstruktoren\\02 Konstruktoren.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/02 OperatorUeberladgBrueche/01Overloadable Operators.txt b/02 OperatorUeberladgBrueche/01Overloadable Operators.txt new file mode 100644 index 0000000000000000000000000000000000000000..f053e22bb077c27854f980d756d09edf4856b982 --- /dev/null +++ b/02 OperatorUeberladgBrueche/01Overloadable Operators.txt @@ -0,0 +1,50 @@ +Overloadable and Non-Overloadable Operators +https://docs.microsoft.com/de-de/dotnet/csharp/language-reference/operators/operator-overloading#overloadable-operators + + ++x, -x, !x, ~x, ++, --, true, false +Diese un�ren Operatoren k�nnen �berladen werden. + + +x + y, x - y, x * y, x / y, x % y, x & y, x | y, x ^ y, x << y, x >> y, +x == y, x != y, x < y, x > y, x <= y, x >= y +Diese bin�ren Operatoren k�nnen �berladen werden. + +Die Vergleichsoperatoren m�ssen paarweise �berladen werden. +Das bedeutet: Wenn ein Operator �berladen wird, der einem Paar angeh�rt, +muss der andere Operator ebenfalls �berladen werden. Dies kann f�r die +folgenden Paare zutreffen: +Die Operatoren == und != +Die Operatoren < und > +Die Operatoren <= und >= + + +x && y, x || y +Bedingte logische Operatoren k�nnen nicht �berladen werden. +Wenn jedoch ein Typ mit den �berladenen Operatoren true und false +ebenfalls den Operator& oder | auf eine bestimmte Weise �berl�dt, +kann jeweils entweder der Operator && oder der Operator || f�r die +Operanden dieses Typs ausgewertet werden. + + +a[i] Der Elementzugriff wird nicht als �berladbarer Operator betrachtet. +Sie k�nnen aber einen Indexer definieren. + + +(T)x Der Cast-Operator kann nicht �berladen werden, +jedoch k�nnen Sie benutzerdefinierte Typkonvertierungen definieren, +die von einem Cast-Ausdruck durchgef�hrt werden k�nnen. Weitere +Informationen finden Sie unter Benutzerdefinierte Konvertierungsoperatoren. + + ++=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>= +Zusammengesetzte Zuweisungsoperatoren k�nnen nicht explizit �berladen werden. +Wenn Sie einen bin�ren Operator �berladen, wird der zugeh�rige zusammengesetzte +Zuweisungsoperator jedoch, sofern er vorhanden ist, auch implizit �berladen. +Wenn += beispielsweise mit + ausgewertet wird. Selbiger kann �berladen werden. + + +^x, x = y, x.y, c ? t : f, x ?? y, x ??= y, x..y, x->y, =>, f(x), as, +await, checked, unchecked, default, delegate, is, nameof, new, sizeof, +stackalloc, typeof +Diese Operatoren k�nnen nicht �berladen werden. diff --git a/02 OperatorUeberladgBrueche/02 OperatorUeberladgBrueche.csproj b/02 OperatorUeberladgBrueche/02 OperatorUeberladgBrueche.csproj new file mode 100644 index 0000000000000000000000000000000000000000..dd116b3c4b1a3c75f4bb13938fdf8606afc30239 --- /dev/null +++ b/02 OperatorUeberladgBrueche/02 OperatorUeberladgBrueche.csproj @@ -0,0 +1,9 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp3.1</TargetFramework> + <RootNamespace>_02_OperatorUeberladgBrueche</RootNamespace> + </PropertyGroup> + +</Project> diff --git a/02 OperatorUeberladgBrueche/Bruch.cs b/02 OperatorUeberladgBrueche/Bruch.cs new file mode 100644 index 0000000000000000000000000000000000000000..4ecb68c87978d08e45b95b1c2cbf570a56390128 --- /dev/null +++ b/02 OperatorUeberladgBrueche/Bruch.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace _02_OperatorUeberladgBrueche +{ + class Bruch + { + int z, n; + public Bruch(int Z, int N=1) + { + z = Z; + n = N; + } + public Bruch(string s) + { + string[] d = s.Split('/'); + z = Convert.ToInt32(d[0]); + n = Convert.ToInt32(d[1]); + } + public override string ToString() => $"{z}/{n}"; + + #region Operatoren + public void Mult_V1(Bruch b2) + { + z = z * b2.z; + n = n * b2.n; + } + public Bruch Mult_V2(Bruch b2) + { + return new Bruch(z * b2.z, n * b2.n); + } + public Bruch Mult_V3(Bruch b2) => new Bruch(z * b2.z, n * b2.n); + public static Bruch operator *(Bruch b1, Bruch b2) => new Bruch(b1.z * b2.z, b1.n * b2.n); + //public static Bruch operator *(Bruch b1, int k) => new Bruch(b1.z * k, b1.n); + //public static Bruch operator *(int k, Bruch b1) => new Bruch(b1.z * k, b1.n); + #endregion + + #region Konvertierungsoperatoren + public static implicit operator Bruch(int k) => new Bruch(k); + // Konvertiert einen Int in einen Bruch + public static explicit operator int(Bruch b) => b.z/b.n; + // Konvertiert einen Bruch in einen int + public static implicit operator Bruch(string s) => new Bruch(s); + #endregion + } +} diff --git a/02 OperatorUeberladgBrueche/Program.cs b/02 OperatorUeberladgBrueche/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..754c1c4f23f3cf247c8dc9f57842421c01b2c97f --- /dev/null +++ b/02 OperatorUeberladgBrueche/Program.cs @@ -0,0 +1,35 @@ +using System; + +namespace _02_OperatorUeberladgBrueche +{ + class Program + { + static void Main(string[] args) + { + Bruch b1 = new Bruch(2, 3); + Bruch b2 = new Bruch(3, 4); + Bruch b3 = new Bruch(2); + Bruch b7 = new Bruch("1/2"); + + Console.WriteLine(b1); + + int k1 = 3; + int k2 = 4; + int k3 = k1 * k2; + + // b1.Mult_V1(b2); // GANZ SCHLECHT! b1 wird zerstört + Console.WriteLine(b1.Mult_V2(b2)); + Bruch b4 = b1 * b2; + Console.WriteLine(b4); + + Bruch b5 = b1 * 2; + Bruch b6 = 2 * b1; + + double x = 3.14; + int k4 = (int) x; + k4 = (int) b6; + + Bruch b8 = (Bruch) "3/4" * "1/2"; + } + } +} diff --git a/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.deps.json b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.deps.json new file mode 100644 index 0000000000000000000000000000000000000000..1650071d1f0eae8d6a20aefc9098220e4d30cb38 --- /dev/null +++ b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "02 OperatorUeberladgBrueche/1.0.0": { + "runtime": { + "02 OperatorUeberladgBrueche.dll": {} + } + } + } + }, + "libraries": { + "02 OperatorUeberladgBrueche/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.dll b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.dll new file mode 100644 index 0000000000000000000000000000000000000000..63aa879c4044ebec743ca234e1777b194807f926 Binary files /dev/null and b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.dll differ diff --git a/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.exe b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.exe new file mode 100644 index 0000000000000000000000000000000000000000..c91ec37c52f77802acf0da25b8d8193a71f046df Binary files /dev/null and b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.exe differ diff --git a/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.pdb b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.pdb new file mode 100644 index 0000000000000000000000000000000000000000..ffc4a3c3946ec2d5d679a96674d36ee6c477dfc9 Binary files /dev/null and b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.pdb differ diff --git a/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.runtimeconfig.dev.json b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.runtimeconfig.dev.json new file mode 100644 index 0000000000000000000000000000000000000000..3becea41545888f98131d88ad51766e8ddde3bce --- /dev/null +++ b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.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/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.runtimeconfig.json b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.runtimeconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..bc456d7868bb54ec1809da30e339cd43f0a8a09c --- /dev/null +++ b/02 OperatorUeberladgBrueche/bin/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.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/02 OperatorUeberladgBrueche/obj/02 OperatorUeberladgBrueche.csproj.nuget.dgspec.json b/02 OperatorUeberladgBrueche/obj/02 OperatorUeberladgBrueche.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..504380fe4d9bcc8cc1f4810d90af876b0767841e --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/02 OperatorUeberladgBrueche.csproj.nuget.dgspec.json @@ -0,0 +1,62 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 OperatorUeberladgBrueche\\02 OperatorUeberladgBrueche.csproj": {} + }, + "projects": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 OperatorUeberladgBrueche\\02 OperatorUeberladgBrueche.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 OperatorUeberladgBrueche\\02 OperatorUeberladgBrueche.csproj", + "projectName": "02 OperatorUeberladgBrueche", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 OperatorUeberladgBrueche\\02 OperatorUeberladgBrueche.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 OperatorUeberladgBrueche\\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": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "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\\5.0.406\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/02 OperatorUeberladgBrueche/obj/02 OperatorUeberladgBrueche.csproj.nuget.g.props b/02 OperatorUeberladgBrueche/obj/02 OperatorUeberladgBrueche.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..138e00dcf5486a053c4b174cc313c07bc3fb08f7 --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/02 OperatorUeberladgBrueche.csproj.nuget.g.props @@ -0,0 +1,18 @@ +<?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.11.1</NuGetToolVersion> + </PropertyGroup> + <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <SourceRoot Include="C:\Users\wienkop\.nuget\packages\" /> + </ItemGroup> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/02 OperatorUeberladgBrueche/obj/02 OperatorUeberladgBrueche.csproj.nuget.g.targets b/02 OperatorUeberladgBrueche/obj/02 OperatorUeberladgBrueche.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..53cfaa19b16f3769b2bfc33db3b5c0053c16fdba --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/02 OperatorUeberladgBrueche.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/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs new file mode 100644 index 0000000000000000000000000000000000000000..ad8dfe1a6310302587a2d0c0111d81b250eb4105 --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// <autogenerated /> +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.AssemblyInfo.cs b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..b867a8de0bc9891c3f214cdda9b7a024e4e0d0be --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.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("02 OperatorUeberladgBrueche")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("02 OperatorUeberladgBrueche")] +[assembly: System.Reflection.AssemblyTitleAttribute("02 OperatorUeberladgBrueche")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.AssemblyInfoInputs.cache b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..97245dcce0d2f8d46649d2d1dd6dc33ea3fd0ce4 --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +d6e21c1fa9f08a5546b3686102fd0479095a08bb diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.GeneratedMSBuildEditorConfig.editorconfig b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000000000000000000000000000000000000..72a945a1ced0a27cf17da68cd122f9315fcd5594 --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,3 @@ +is_global = true +build_property.RootNamespace = _02_OperatorUeberladgBrueche +build_property.ProjectDir = C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\ diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.assets.cache b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..c68e2d5ca1218c54b00b41885a31f195343a99e3 Binary files /dev/null and b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.assets.cache differ diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.csproj.AssemblyReference.cache b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.csproj.AssemblyReference.cache new file mode 100644 index 0000000000000000000000000000000000000000..f5e894aea93a73e58fa9d4feab241bc197ee1a40 Binary files /dev/null and b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.csproj.AssemblyReference.cache differ diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.csproj.CoreCompileInputs.cache b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..84a232f9c86c8114d7465fe177da77df008a19e4 --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +b20559793c97deff26ab65c4a1f15167532c35bb diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.csproj.FileListAbsolute.txt b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.csproj.FileListAbsolute.txt new file mode 100644 index 0000000000000000000000000000000000000000..54bbe92ed1a844306bc0a240612429ba1f40b7e9 --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\bin\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.exe +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\bin\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.deps.json +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\bin\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.runtimeconfig.json +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\bin\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.runtimeconfig.dev.json +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\bin\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.dll +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\bin\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.pdb +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\obj\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.csproj.AssemblyReference.cache +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\obj\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\obj\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.AssemblyInfoInputs.cache +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\obj\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.AssemblyInfo.cs +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\obj\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.csproj.CoreCompileInputs.cache +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\obj\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.dll +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\obj\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.pdb +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 OperatorUeberladgBrueche\obj\Debug\netcoreapp3.1\02 OperatorUeberladgBrueche.genruntimeconfig.cache diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.dll b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.dll new file mode 100644 index 0000000000000000000000000000000000000000..63aa879c4044ebec743ca234e1777b194807f926 Binary files /dev/null and b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.dll differ diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.genruntimeconfig.cache b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.genruntimeconfig.cache new file mode 100644 index 0000000000000000000000000000000000000000..1ff701a53989a8ee7f2bb921424b71d67d8b66d9 --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.genruntimeconfig.cache @@ -0,0 +1 @@ +30198a3809eddc056c47e2816edc37ec2b8435fb diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.pdb b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.pdb new file mode 100644 index 0000000000000000000000000000000000000000..ffc4a3c3946ec2d5d679a96674d36ee6c477dfc9 Binary files /dev/null and b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/02 OperatorUeberladgBrueche.pdb differ diff --git a/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/apphost.exe b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/apphost.exe new file mode 100644 index 0000000000000000000000000000000000000000..c91ec37c52f77802acf0da25b8d8193a71f046df Binary files /dev/null and b/02 OperatorUeberladgBrueche/obj/Debug/netcoreapp3.1/apphost.exe differ diff --git a/02 OperatorUeberladgBrueche/obj/project.assets.json b/02 OperatorUeberladgBrueche/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..19f9bc4ea7d15e4422063f157210c73faa491548 --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/project.assets.json @@ -0,0 +1,67 @@ +{ + "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-ss2022-wienkop\\02 OperatorUeberladgBrueche\\02 OperatorUeberladgBrueche.csproj", + "projectName": "02 OperatorUeberladgBrueche", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 OperatorUeberladgBrueche\\02 OperatorUeberladgBrueche.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 OperatorUeberladgBrueche\\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": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "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\\5.0.406\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/02 OperatorUeberladgBrueche/obj/project.nuget.cache b/02 OperatorUeberladgBrueche/obj/project.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..07f51827d561e0cf82ba0688950c787a2919685f --- /dev/null +++ b/02 OperatorUeberladgBrueche/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "ASe+Ep6Xxb5jbUtsxRBvYYXcL5H8FBGKnk1ERV1YbpHnDjUY+kFpRbiH4uOzCW2+cp3O0kJ1gLzjjM6IUTVsBQ==", + "success": true, + "projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 OperatorUeberladgBrueche\\02 OperatorUeberladgBrueche.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/02 UebgMo/02 UebgMo.csproj b/02 UebgMo/02 UebgMo.csproj new file mode 100644 index 0000000000000000000000000000000000000000..ad1941770efa4b12144739920c69e5812b0bb8a5 --- /dev/null +++ b/02 UebgMo/02 UebgMo.csproj @@ -0,0 +1,9 @@ +<Project Sdk="Microsoft.NET.Sdk"> + + <PropertyGroup> + <OutputType>Exe</OutputType> + <TargetFramework>netcoreapp3.1</TargetFramework> + <RootNamespace>_02_UebgMo</RootNamespace> + </PropertyGroup> + +</Project> diff --git a/02 UebgMo/Program.cs b/02 UebgMo/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..c75c173657c9e57b18c504a5709cf5e59fa60fbd --- /dev/null +++ b/02 UebgMo/Program.cs @@ -0,0 +1,69 @@ +using System; + +namespace _02_UebgMo +{ + // Programmieren Sie eine Klasse Kennzeichen mit folgenden privaten Eigenschaften + // string kennzeichen + // int position + + // - statischer Konstruktor: Erzeugt ein Feld (statisch/nicht-statisch?) + // von verfügbaren Kennzeichen. + + // - Konstruktor: Nimmt das nächste verfügbare Kennzeichen aus dem Feld und initialisiert das Objekt damit. Dann wird das + // betreffende Kennzeichen im Kennzeichenfeld gelöscht (=null). In der position-Variablen wird die Feldnummer gespeichert. + + // - Methode: Kennzeichenzurückgeben: Erhält ein Kennzeichen und schreibt dieses Kennzeichen dann wieder in das Kennzeichenfeld + // an die betreffende Position zurück. + + class Kennzeichen + { + string kennz; + int pos; + + static string[] verfuegbar; // = { "N-AB-100", "N-AB-101" }; NUR EINMAL FÜR DIE KLASSE!!! + static int nPos = 0; + + static Kennzeichen() + { + Console.WriteLine("Statischer Konstruktor"); + verfuegbar = new string[20]; + for (int i = 0; i < verfuegbar.Length; i++) + verfuegbar[i] = $"N-AB-{i + 100}"; + } + public Kennzeichen() + { + Console.WriteLine("new()"); + for (int i = 0; i < verfuegbar.Length; i++) + { + int p = (i + nPos) % verfuegbar.Length; + if (verfuegbar[p] != null) + { + kennz = verfuegbar[p]; + pos = p; + verfuegbar[p] = null; + nPos++; + return; + } + } + throw new Exception("Keine Kennzeichen mehr verfügbar!"); + } + public void KennzeichenZurueck() + { + verfuegbar[pos] = kennz; + kennz = null; + } + } + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Programmstart"); + Kennzeichen k1 = new Kennzeichen(); // N-AB-100 + Kennzeichen k2 = new Kennzeichen(); // N-AB-101 + + k1.KennzeichenZurueck(); // N-AB-100 wurde zurückgegeben + Kennzeichen k3 = new Kennzeichen(); // N-AB-100 bzw. N-AB-102 + } + } +} + \ No newline at end of file diff --git a/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.deps.json b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.deps.json new file mode 100644 index 0000000000000000000000000000000000000000..82b010036a60dc1ad9bfccbb24f7796a201f2ee4 --- /dev/null +++ b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "02 UebgMo/1.0.0": { + "runtime": { + "02 UebgMo.dll": {} + } + } + } + }, + "libraries": { + "02 UebgMo/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.dll b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.dll new file mode 100644 index 0000000000000000000000000000000000000000..e7a640d87ba5a8fc5544cc0efdfafe0aa573b799 Binary files /dev/null and b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.dll differ diff --git a/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.exe b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.exe new file mode 100644 index 0000000000000000000000000000000000000000..8a9f92942efba0fba976b14069a634e7c8352a58 Binary files /dev/null and b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.exe differ diff --git a/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.pdb b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.pdb new file mode 100644 index 0000000000000000000000000000000000000000..6f4aec3c7e91e6615d39809f2effca69b7660dff Binary files /dev/null and b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.pdb differ diff --git a/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.runtimeconfig.dev.json b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.runtimeconfig.dev.json new file mode 100644 index 0000000000000000000000000000000000000000..3becea41545888f98131d88ad51766e8ddde3bce --- /dev/null +++ b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.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/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.runtimeconfig.json b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.runtimeconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..bc456d7868bb54ec1809da30e339cd43f0a8a09c --- /dev/null +++ b/02 UebgMo/bin/Debug/netcoreapp3.1/02 UebgMo.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/02 UebgMo/obj/02 UebgMo.csproj.nuget.dgspec.json b/02 UebgMo/obj/02 UebgMo.csproj.nuget.dgspec.json new file mode 100644 index 0000000000000000000000000000000000000000..eb301549c839cbd08ad3009b503bf8e6251b6e72 --- /dev/null +++ b/02 UebgMo/obj/02 UebgMo.csproj.nuget.dgspec.json @@ -0,0 +1,62 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 UebgMo\\02 UebgMo.csproj": {} + }, + "projects": { + "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 UebgMo\\02 UebgMo.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 UebgMo\\02 UebgMo.csproj", + "projectName": "02 UebgMo", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 UebgMo\\02 UebgMo.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 UebgMo\\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": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "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\\5.0.406\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/02 UebgMo/obj/02 UebgMo.csproj.nuget.g.props b/02 UebgMo/obj/02 UebgMo.csproj.nuget.g.props new file mode 100644 index 0000000000000000000000000000000000000000..138e00dcf5486a053c4b174cc313c07bc3fb08f7 --- /dev/null +++ b/02 UebgMo/obj/02 UebgMo.csproj.nuget.g.props @@ -0,0 +1,18 @@ +<?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.11.1</NuGetToolVersion> + </PropertyGroup> + <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> + <SourceRoot Include="C:\Users\wienkop\.nuget\packages\" /> + </ItemGroup> + <PropertyGroup> + <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> + </PropertyGroup> +</Project> \ No newline at end of file diff --git a/02 UebgMo/obj/02 UebgMo.csproj.nuget.g.targets b/02 UebgMo/obj/02 UebgMo.csproj.nuget.g.targets new file mode 100644 index 0000000000000000000000000000000000000000..53cfaa19b16f3769b2bfc33db3b5c0053c16fdba --- /dev/null +++ b/02 UebgMo/obj/02 UebgMo.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/02 UebgMo/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs b/02 UebgMo/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs new file mode 100644 index 0000000000000000000000000000000000000000..ad8dfe1a6310302587a2d0c0111d81b250eb4105 --- /dev/null +++ b/02 UebgMo/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// <autogenerated /> +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.AssemblyInfo.cs b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.AssemblyInfo.cs new file mode 100644 index 0000000000000000000000000000000000000000..a0d87499de221febd5cb6f2017d4b75c58547ed3 --- /dev/null +++ b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.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("02 UebgMo")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("02 UebgMo")] +[assembly: System.Reflection.AssemblyTitleAttribute("02 UebgMo")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.AssemblyInfoInputs.cache b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.AssemblyInfoInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..2442d876883b142d89b5632c8c91c3fe4775867e --- /dev/null +++ b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +43a719bf5798be0b64ddea151b0e1b0b5878eed9 diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.GeneratedMSBuildEditorConfig.editorconfig b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000000000000000000000000000000000000..ce2ebaa79f27155968e8ee2d0a88c6c779adc759 --- /dev/null +++ b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,3 @@ +is_global = true +build_property.RootNamespace = _02_UebgMo +build_property.ProjectDir = C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\ diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.assets.cache b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..33384f7c4138540e5be1400d3e05ea3519e206bb Binary files /dev/null and b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.assets.cache differ diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.csproj.AssemblyReference.cache b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.csproj.AssemblyReference.cache new file mode 100644 index 0000000000000000000000000000000000000000..f5e894aea93a73e58fa9d4feab241bc197ee1a40 Binary files /dev/null and b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.csproj.AssemblyReference.cache differ diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.csproj.CoreCompileInputs.cache b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000000000000000000000000000000000000..8dd20d401d817c01100c83f5e6a6c92fd7a6be30 --- /dev/null +++ b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +24b0edbdb806421f1a25adcb0c4681fca02d918f diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.csproj.FileListAbsolute.txt b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.csproj.FileListAbsolute.txt new file mode 100644 index 0000000000000000000000000000000000000000..289aaceaf75de9dd1368dc7ce8e8f960300f1e9d --- /dev/null +++ b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\bin\Debug\netcoreapp3.1\02 UebgMo.exe +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\bin\Debug\netcoreapp3.1\02 UebgMo.deps.json +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\bin\Debug\netcoreapp3.1\02 UebgMo.runtimeconfig.json +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\bin\Debug\netcoreapp3.1\02 UebgMo.runtimeconfig.dev.json +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\bin\Debug\netcoreapp3.1\02 UebgMo.dll +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\bin\Debug\netcoreapp3.1\02 UebgMo.pdb +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\obj\Debug\netcoreapp3.1\02 UebgMo.csproj.AssemblyReference.cache +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\obj\Debug\netcoreapp3.1\02 UebgMo.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\obj\Debug\netcoreapp3.1\02 UebgMo.AssemblyInfoInputs.cache +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\obj\Debug\netcoreapp3.1\02 UebgMo.AssemblyInfo.cs +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\obj\Debug\netcoreapp3.1\02 UebgMo.csproj.CoreCompileInputs.cache +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\obj\Debug\netcoreapp3.1\02 UebgMo.dll +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\obj\Debug\netcoreapp3.1\02 UebgMo.pdb +C:\Users\wienkop\source\repos\prog2-ss2022-wienkop\02 UebgMo\obj\Debug\netcoreapp3.1\02 UebgMo.genruntimeconfig.cache diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.dll b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.dll new file mode 100644 index 0000000000000000000000000000000000000000..e7a640d87ba5a8fc5544cc0efdfafe0aa573b799 Binary files /dev/null and b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.dll differ diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.genruntimeconfig.cache b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.genruntimeconfig.cache new file mode 100644 index 0000000000000000000000000000000000000000..4be71f1bc26fb942e053b91b759e98667f57ee77 --- /dev/null +++ b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.genruntimeconfig.cache @@ -0,0 +1 @@ +94d81448b8ac899878233df523d0906bf7b7cd19 diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.pdb b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.pdb new file mode 100644 index 0000000000000000000000000000000000000000..6f4aec3c7e91e6615d39809f2effca69b7660dff Binary files /dev/null and b/02 UebgMo/obj/Debug/netcoreapp3.1/02 UebgMo.pdb differ diff --git a/02 UebgMo/obj/Debug/netcoreapp3.1/apphost.exe b/02 UebgMo/obj/Debug/netcoreapp3.1/apphost.exe new file mode 100644 index 0000000000000000000000000000000000000000..8a9f92942efba0fba976b14069a634e7c8352a58 Binary files /dev/null and b/02 UebgMo/obj/Debug/netcoreapp3.1/apphost.exe differ diff --git a/02 UebgMo/obj/project.assets.json b/02 UebgMo/obj/project.assets.json new file mode 100644 index 0000000000000000000000000000000000000000..e5268b1e3903ab9fdc2487cd72be2c19b1ceb0ef --- /dev/null +++ b/02 UebgMo/obj/project.assets.json @@ -0,0 +1,67 @@ +{ + "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-ss2022-wienkop\\02 UebgMo\\02 UebgMo.csproj", + "projectName": "02 UebgMo", + "projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 UebgMo\\02 UebgMo.csproj", + "packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\", + "outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 UebgMo\\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": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "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\\5.0.406\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/02 UebgMo/obj/project.nuget.cache b/02 UebgMo/obj/project.nuget.cache new file mode 100644 index 0000000000000000000000000000000000000000..ddd932143d6c15a90b4d9841ec4fb7d93acc2267 --- /dev/null +++ b/02 UebgMo/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "b0087rAvYldYbnGIgvJsKonWbypH+8+4K9VBEAU4ULUuipi1UYBJM75hs1hEcAHzRB+d7uIOB/QKst3zY9fsqA==", + "success": true, + "projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2022-wienkop\\02 UebgMo\\02 UebgMo.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/prog2-ss2022-wienkop.sln b/prog2-ss2022-wienkop.sln index d872116bee4fd210c04a7ee861599967fe859b23..a7ac61e6b4e179bf9d54324d764611a50eea2430 100644 --- a/prog2-ss2022-wienkop.sln +++ b/prog2-ss2022-wienkop.sln @@ -7,7 +7,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "01 IntroKlassen", "01 Intro EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "01 StructVsClass", "01 StructVsClass\01 StructVsClass.csproj", "{6251719B-DF9A-4F51-93E1-B9EBF24E7A3C}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01 UebgDi KlasseMitStaticKonstruktor", "01 UebgDi KlasseMitStaticKonstruktor\01 UebgDi KlasseMitStaticKonstruktor.csproj", "{E8ABEC21-0337-48B4-B97A-692187BE80AF}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "01 UebgDi KlasseMitStaticKonstruktor", "01 UebgDi KlasseMitStaticKonstruktor\01 UebgDi KlasseMitStaticKonstruktor.csproj", "{E8ABEC21-0337-48B4-B97A-692187BE80AF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02 UebgMo", "02 UebgMo\02 UebgMo.csproj", "{0F9EEEB4-B6FE-4BBC-8136-965A175C5A53}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02 OperatorUeberladgBrueche", "02 OperatorUeberladgBrueche\02 OperatorUeberladgBrueche.csproj", "{CB1FE4B4-40B6-46FB-8139-CC900E9C0826}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02 Konstruktoren", "02 Konstruktoren\02 Konstruktoren.csproj", "{7551A432-51B4-45DE-BEDF-AE22F87D8A56}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -27,6 +33,18 @@ Global {E8ABEC21-0337-48B4-B97A-692187BE80AF}.Debug|Any CPU.Build.0 = Debug|Any CPU {E8ABEC21-0337-48B4-B97A-692187BE80AF}.Release|Any CPU.ActiveCfg = Release|Any CPU {E8ABEC21-0337-48B4-B97A-692187BE80AF}.Release|Any CPU.Build.0 = Release|Any CPU + {0F9EEEB4-B6FE-4BBC-8136-965A175C5A53}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0F9EEEB4-B6FE-4BBC-8136-965A175C5A53}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0F9EEEB4-B6FE-4BBC-8136-965A175C5A53}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0F9EEEB4-B6FE-4BBC-8136-965A175C5A53}.Release|Any CPU.Build.0 = Release|Any CPU + {CB1FE4B4-40B6-46FB-8139-CC900E9C0826}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CB1FE4B4-40B6-46FB-8139-CC900E9C0826}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CB1FE4B4-40B6-46FB-8139-CC900E9C0826}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CB1FE4B4-40B6-46FB-8139-CC900E9C0826}.Release|Any CPU.Build.0 = Release|Any CPU + {7551A432-51B4-45DE-BEDF-AE22F87D8A56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7551A432-51B4-45DE-BEDF-AE22F87D8A56}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7551A432-51B4-45DE-BEDF-AE22F87D8A56}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7551A432-51B4-45DE-BEDF-AE22F87D8A56}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE