This commit is contained in:
2024-07-17 07:20:18 +02:00
parent 3e9256b983
commit bedea4caf3
264 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
using System;
using System.IO;
namespace Exercises_C_Sharp.E35_Dateizugriffe
{
class Inventar
{
public Inventar(string companyName)
{
if(string.IsNullOrWhiteSpace(companyName))
throw new ArgumentNullException("Der übergeben Name für die Fima ist NULL oder leer. Dies ist nicht erlaubt.");
CompanyName = companyName;
}
public string CompanyName;
public List<string> Notes = new List<string>();
List<(Thing obj, int amount)> objectList = new List<(Thing obj, int amount)>();
//Diese Methode soll den Gesamtpreis aller Elemente zurück geben.
public decimal ReturnPriceSum()
{
//Code START
return decimal.Zero;
//Code ENDE
}
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.IO;
namespace Exercises_C_Sharp.E35_Dateizugriffe
{
class Thing
{
public string? Name;
public decimal Price;
public string? Details;
public double Weight;
}
}