Commit 59872e26 authored by Uwe Wienkop's avatar Uwe Wienkop

2020-05-29

parent 827d0aab
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v3.1",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v3.1": {
"01Uebg_Buergeramt-Di/1.0.0": {
"runtime": {
"01Uebg_Buergeramt-Di.dll": {}
}
}
}
},
"libraries": {
"01Uebg_Buergeramt-Di/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\wienkop\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\wienkop\\.nuget\\packages"
]
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}
\ No newline at end of file
......@@ -6,3 +6,12 @@ C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\obj\Debug\net
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\obj\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.csproj.CoreCompileInputs.cache
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\obj\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.AssemblyInfoInputs.cache
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\obj\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.AssemblyInfo.cs
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\bin\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.exe
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\bin\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.deps.json
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\bin\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.runtimeconfig.json
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\bin\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.runtimeconfig.dev.json
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\bin\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.dll
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\bin\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.pdb
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\obj\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.dll
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\obj\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.pdb
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\01Buergeramt-Di\obj\Debug\netcoreapp3.1\01Uebg_Buergeramt-Di.genruntimeconfig.cache
......@@ -14,9 +14,9 @@
public static class Engine
{
public static string Generate(params object[] elements)
{
// TODO: Your code for (recursive) generation of a HTML string from array "elements" here...
}
//public static string Generate(params object[] elements)
//{
// // TODO: Your code for (recursive) generation of a HTML string from array "elements" here...
//}
}
}
\ No newline at end of file
......@@ -8,37 +8,37 @@ class Program
{
// Generate HTML document and store result in string:
string html = Engine.Generate
(
new DocumentType(),
new Html
(
new Head
(
new Title("Generated HTML Example")
),
new Body
(
new Heading("Welcome to the Technical University of Nuremberg"),
new Paragraph
(
"We have a ", new Italic("distinct profile"), " and strive to maintain our ", new Italic("leading position"), " among comparable universities."
),
new Heading("Study for your future"),
new Paragraph
(
12, " departments provide more than ", 40, " degree programs in ", new Bold("engineering, business, design and social sciences."),
new LineBreak(),
"If you have questions, please contact the ", new Italic("Student Counseling Service"), " or the ", new Italic("Student Office.")
)
)
)
);
//string html = Engine.Generate
//(
// new DocumentType(),
// new Html
// (
// new Head
// (
// new Title("Generated HTML Example")
// ),
// new Body
// (
// new Heading("Welcome to the Technical University of Nuremberg"),
// new Paragraph
// (
// "We have a ", new Italic("distinct profile"), " and strive to maintain our ", new Italic("leading position"), " among comparable universities."
// ),
// new Heading("Study for your future"),
// new Paragraph
// (
// 12, " departments provide more than ", 40, " degree programs in ", new Bold("engineering, business, design and social sciences."),
// new LineBreak(),
// "If you have questions, please contact the ", new Italic("Student Counseling Service"), " or the ", new Italic("Student Office.")
// )
// )
// )
//);
// Write resulting HTML string:
......
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>_06_UebgSaGenerics</RootNamespace>
</PropertyGroup>
</Project>
using System;
using System.Collections.Generic;
using System.Text;
// Erstellen Sie mit Hilfe einer Liste einen generischen Stapel (Stack), in dem beliebige Elemente
// gespeichert werden können.
// Ein Stack ist eine Datenstruktur, ähnlich wie ein Stapel auf Ihrem Schreibtisch. Das, was
// zuoberst aufliegt, wird auch zuerst wieder heruntergenommen.
// Sie können einen Stapel leicht mithilfe einer Liste aufbauen. Hierfür benötigen Sie folgenden Methoden:
// - AddFirst: Als erstes Element einfügen
// - GetFirst(bool removeFromStack=true): Liefert das erste Element zurück und entfernt es vom Stapel; kann
// per removeFromStack unterbunden werden
// - Contains(T): Sucht nach dem übergebenen Element und liefert true/false zurück
// - GetEnumerator() : Ermöglicht einen Durchlauf durch den Stapel und liefert nach und nach alle Elemente zurück
namespace _06_UebgSaGenerics
{
class GenericStack
{
}
}
using System;
namespace _06_UebgSaGenerics
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v3.1",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v3.1": {
"06 UebgSaGenerics/1.0.0": {
"runtime": {
"06 UebgSaGenerics.dll": {}
}
}
}
},
"libraries": {
"06 UebgSaGenerics/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
\ No newline at end of file
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\wienkop\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\wienkop\\.nuget\\packages"
]
}
}
\ No newline at end of file
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}
\ No newline at end of file
{
"format": 1,
"restore": {
"C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgSaGenerics\\06 UebgSaGenerics.csproj": {}
},
"projects": {
"C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgSaGenerics\\06 UebgSaGenerics.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgSaGenerics\\06 UebgSaGenerics.csproj",
"projectName": "06 UebgSaGenerics",
"projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgSaGenerics\\06 UebgSaGenerics.csproj",
"packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\",
"outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgSaGenerics\\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,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[3.1.2, 3.1.2]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.300\\RuntimeIdentifierGraph.json"
}
}
}
}
}
\ No newline at end of file
<?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.6.0</NuGetToolVersion>
</PropertyGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
\ No newline at end of file
<?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
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
//------------------------------------------------------------------------------
// <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 UebgSaGenerics")]
[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 UebgSaGenerics")]
[assembly: System.Reflection.AssemblyTitleAttribute("06 UebgSaGenerics")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\bin\Debug\netcoreapp3.1\06 UebgSaGenerics.exe
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\bin\Debug\netcoreapp3.1\06 UebgSaGenerics.deps.json
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\bin\Debug\netcoreapp3.1\06 UebgSaGenerics.runtimeconfig.json
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\bin\Debug\netcoreapp3.1\06 UebgSaGenerics.runtimeconfig.dev.json
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\bin\Debug\netcoreapp3.1\06 UebgSaGenerics.dll
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\bin\Debug\netcoreapp3.1\06 UebgSaGenerics.pdb
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\obj\Debug\netcoreapp3.1\06 UebgSaGenerics.AssemblyInfoInputs.cache
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\obj\Debug\netcoreapp3.1\06 UebgSaGenerics.AssemblyInfo.cs
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\obj\Debug\netcoreapp3.1\06 UebgSaGenerics.csproj.CoreCompileInputs.cache
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\obj\Debug\netcoreapp3.1\06 UebgSaGenerics.dll
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\obj\Debug\netcoreapp3.1\06 UebgSaGenerics.pdb
C:\Users\wienkop\source\repos\prog2-ss2020-wienkop\06 UebgSaGenerics\obj\Debug\netcoreapp3.1\06 UebgSaGenerics.genruntimeconfig.cache
{
"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 UebgSaGenerics\\06 UebgSaGenerics.csproj",
"projectName": "06 UebgSaGenerics",
"projectPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgSaGenerics\\06 UebgSaGenerics.csproj",
"packagesPath": "C:\\Users\\wienkop\\.nuget\\packages\\",
"outputPath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgSaGenerics\\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,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Ref",
"version": "[3.1.2, 3.1.2]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.300\\RuntimeIdentifierGraph.json"
}
}
}
}
\ No newline at end of file
{
"version": 2,
"dgSpecHash": "CnyHuTUa6kPjGZSsDNgpobujNT3N5nBqzHFMIU2RKJvGM1PqAXtaXfKRm9c2Qf4RNbW3LFU1qBealLnJkKXhSg==",
"success": true,
"projectFilePath": "C:\\Users\\wienkop\\source\\repos\\prog2-ss2020-wienkop\\06 UebgSaGenerics\\06 UebgSaGenerics.csproj",
"expectedPackageFiles": [
"C:\\Users\\wienkop\\.nuget\\packages\\microsoft.aspnetcore.app.ref\\3.1.2\\microsoft.aspnetcore.app.ref.3.1.2.nupkg.sha512"
],
"logs": []
}
\ No newline at end of file
......@@ -5,7 +5,7 @@ using System.Text;
namespace _06GenericList
{
class Liste<T> : IComparable<Liste<T>> where T:IComparable<T>
class Liste<T> : IComparable<Liste<T>> where T:IComparable<T>
{
// Die Klasse Element ist nun eine *private* Klasse der Klasse StringListe
// Die Methoden von StringListe dürfen auf private Member zugreifen
......@@ -237,9 +237,7 @@ namespace _06GenericList
return neueListe;
}
public int CompareTo([AllowNull] Liste<T> other)
{
return (anz < other.anz) ? -1 : 1;
}
public int CompareTo(Liste<T> other) => anz - other.anz;
}
}
......@@ -37,6 +37,7 @@ namespace _06GenericList
pl.Print();
Liste<Liste<Person>> pll = new Liste<Liste<Person>>();
pll.AddSorted(pl);
}
}
......
......@@ -72,9 +72,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "06WPF_Ausnahmen", "06WPF_Au
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "06 UebgDiExceptions", "06 UebgDiExceptions\06 UebgDiExceptions.csproj", "{FEBCFEA1-9AD3-4202-A6B2-46CBC799A87A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "06GenericsIntro", "06GenericsIntro\06GenericsIntro.csproj", "{CA248160-1076-468E-BB49-4EA45964DC8E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "06GenericsIntro", "06GenericsIntro\06GenericsIntro.csproj", "{CA248160-1076-468E-BB49-4EA45964DC8E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "06GenericList", "06GenericList\06GenericList.csproj", "{196E9C46-BAEB-47E0-9712-38B236ECA836}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "06GenericList", "06GenericList\06GenericList.csproj", "{196E9C46-BAEB-47E0-9712-38B236ECA836}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "06 UebgSaGenerics", "06 UebgSaGenerics\06 UebgSaGenerics.csproj", "{E177C278-2083-4221-A614-8AAFC194745D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......@@ -218,6 +220,10 @@ Global
{196E9C46-BAEB-47E0-9712-38B236ECA836}.Debug|Any CPU.Build.0 = Debug|Any CPU
{196E9C46-BAEB-47E0-9712-38B236ECA836}.Release|Any CPU.ActiveCfg = Release|Any CPU
{196E9C46-BAEB-47E0-9712-38B236ECA836}.Release|Any CPU.Build.0 = Release|Any CPU
{E177C278-2083-4221-A614-8AAFC194745D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E177C278-2083-4221-A614-8AAFC194745D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E177C278-2083-4221-A614-8AAFC194745D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E177C278-2083-4221-A614-8AAFC194745D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......
Markdown is supported
0%