Reorder
This commit is contained in:
29
Exercises/E35_Dateizugriffe/Ex8/Inventar.cs
Normal file
29
Exercises/E35_Dateizugriffe/Ex8/Inventar.cs
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Exercises/E35_Dateizugriffe/Ex8/Thing.cs
Normal file
13
Exercises/E35_Dateizugriffe/Ex8/Thing.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user