TRX/tools/config/TRX_ConfigToolLib/Utils/Json/NumericConverter.cs
lahm86 de1a63fc74 tools: clean-up config tool build messages
This fixes VS messages regarding namespaces, removes some redundant
usings and SDK parameters, and adds XAML design data contexts.
2025-04-03 17:09:56 +01:00

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));
}
}