Added CountryFormat from CoffeeVendingMachine
:)
This commit is contained in:
parent
79dfde3aa1
commit
80a7c32467
2 changed files with 9 additions and 1 deletions
8
Marathons/Const.cs
Normal file
8
Marathons/Const.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
|
namespace Marathons;
|
||||||
|
|
||||||
|
public class Const
|
||||||
|
{
|
||||||
|
public static CultureInfo Culture => new CultureInfo("de-AT");
|
||||||
|
}
|
||||||
|
|
@ -30,6 +30,6 @@ public sealed class Marathon
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return $"{City} marathon on {Date.ToString()}";
|
return $"{City} marathon on {Date.ToString(Const.Culture)}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue