mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00

This fixes VS messages regarding namespaces, removes some redundant usings and SDK parameters, and adds XAML design data contexts.
17 lines
543 B
C#
17 lines
543 B
C#
using Newtonsoft.Json;
|
|
using System.Globalization;
|
|
|
|
namespace TRX_ConfigToolLib.Utils.Json;
|
|
|
|
public class NumericConverter : JsonConverter<decimal>
|
|
{
|
|
public override decimal ReadJson(JsonReader reader, Type objectType, decimal existingValue, bool hasExistingValue, JsonSerializer serializer)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public override void WriteJson(JsonWriter writer, decimal value, JsonSerializer serializer)
|
|
{
|
|
writer.WriteRawValue(value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|