haus system auf core geändert
This commit is contained in:
19
ReallifeGamemode.Server.Core.Extensions/IntegerExtensions.cs
Normal file
19
ReallifeGamemode.Server.Core.Extensions/IntegerExtensions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Server.Core.Extensions
|
||||
{
|
||||
public static class IntegerExtensions
|
||||
{
|
||||
public static string ToMoneyString(this int? money)
|
||||
{
|
||||
return ToMoneyString(money ?? 0);
|
||||
}
|
||||
public static string ToMoneyString(this int money)
|
||||
{
|
||||
return "$" + string.Format(new CultureInfo("de-DE"), "{0:C0}", money).Replace("€", "").Trim();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user