Tag 2, Aufgabe 1
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
namespace Tag_2_Aufgaben;
|
||||||
|
|
||||||
|
internal class Song
|
||||||
|
{
|
||||||
|
private string titel;
|
||||||
|
private string interpret;
|
||||||
|
private int dauerSekunden;
|
||||||
|
|
||||||
|
public string getTitel(){
|
||||||
|
return titel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string getInterpret(){
|
||||||
|
return interpret;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getDauerSekunden(){
|
||||||
|
return dauerSekunden;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitel(string titel){
|
||||||
|
this.titel = titel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInterpret(string interpret){
|
||||||
|
this.interpret = interpret;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDauerSekunden(int dauerSekunden){
|
||||||
|
this.dauerSekunden = dauerSekunden;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void spielen() {
|
||||||
|
Console.WriteLine("{0} von {1} ({2}:{3} Minuten)", titel, interpret, dauerSekunden/60, dauerSekunden%60);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
// See https://aka.ms/new-console-template for more information
|
using Tag_2_Aufgaben;
|
||||||
Console.WriteLine("Hello, World!");
|
|
||||||
|
var song = new Song();
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// <autogenerated />
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v10.0", FrameworkDisplayName = ".NET 10.0")]
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
[assembly: System.Reflection.AssemblyCompanyAttribute("Aufgaben")]
|
||||||
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3e3cf7d27baac4eda0cf31c767ba07a79f235bec")]
|
||||||
|
[assembly: System.Reflection.AssemblyProductAttribute("Aufgaben")]
|
||||||
|
[assembly: System.Reflection.AssemblyTitleAttribute("Aufgaben")]
|
||||||
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|
||||||
|
// Von der MSBuild WriteCodeFragment-Klasse generiert.
|
||||||
|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
09a60c84e110a6c48c4a16b436739b1f04033328ffe663f7c0177d9865f5dd54
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
is_global = true
|
||||||
|
build_property.TargetFramework = net10.0
|
||||||
|
build_property.TargetFrameworkIdentifier = .NETCoreApp
|
||||||
|
build_property.TargetFrameworkVersion = v10.0
|
||||||
|
build_property.TargetPlatformMinVersion =
|
||||||
|
build_property.UsingMicrosoftNETSdkWeb =
|
||||||
|
build_property.ProjectTypeGuids =
|
||||||
|
build_property.InvariantGlobalization =
|
||||||
|
build_property.PlatformNeutralAssembly =
|
||||||
|
build_property.EnforceExtendedAnalyzerRules =
|
||||||
|
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||||
|
build_property.RootNamespace = Aufgaben
|
||||||
|
build_property.ProjectDir = /home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/
|
||||||
|
build_property.EnableComHosting =
|
||||||
|
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||||
|
build_property.EffectiveAnalysisLevelStyle = 10.0
|
||||||
|
build_property.EnableCodeStyleSeverity =
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
// <auto-generated/>
|
||||||
|
global using System;
|
||||||
|
global using System.Collections.Generic;
|
||||||
|
global using System.IO;
|
||||||
|
global using System.Linq;
|
||||||
|
global using System.Net.Http;
|
||||||
|
global using System.Threading;
|
||||||
|
global using System.Threading.Tasks;
|
||||||
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
75b87e383ff15e0ef98f29f2fbc381d4a396ab05af628df287cc53c53957d488
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/obj/Debug/net10.0/Aufgaben.GeneratedMSBuildEditorConfig.editorconfig
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/obj/Debug/net10.0/Aufgaben.AssemblyInfoInputs.cache
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/obj/Debug/net10.0/Aufgaben.AssemblyInfo.cs
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/obj/Debug/net10.0/Aufgaben.csproj.CoreCompileInputs.cache
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/bin/Debug/net10.0/Aufgaben
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/bin/Debug/net10.0/Aufgaben.deps.json
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/bin/Debug/net10.0/Aufgaben.runtimeconfig.json
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/bin/Debug/net10.0/Aufgaben.dll
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/bin/Debug/net10.0/Aufgaben.pdb
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/obj/Debug/net10.0/Aufgaben.dll
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/obj/Debug/net10.0/refint/Aufgaben.dll
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/obj/Debug/net10.0/Aufgaben.pdb
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/obj/Debug/net10.0/Aufgaben.genruntimeconfig.cache
|
||||||
|
/home/wbs/Dokumente/Programmierung/wbs-csharp/Tag 2/Aufgaben/obj/Debug/net10.0/ref/Aufgaben.dll
|
||||||
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
dfff3fc3b0ced20cce3d5c8cb8ade938f86aa2338805d1788840cb01e28427cd
|
||||||
Binary file not shown.
Executable
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user