From 6b3d54b9d50f6883e26b821474ce93b013d30fb9 Mon Sep 17 00:00:00 2001 From: Viacheslav Demydiuk Date: Thu, 9 Jan 2025 17:06:36 +0200 Subject: [PATCH] MtApi5: added default value to properites of MqlParam for correct json serialization --- MtApi5/MqlParam.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MtApi5/MqlParam.cs b/MtApi5/MqlParam.cs index 5db389c0..08d7a861 100644 --- a/MtApi5/MqlParam.cs +++ b/MtApi5/MqlParam.cs @@ -3,8 +3,8 @@ public class MqlParam { public ENUM_DATATYPE DataType { get; set; } - public long? IntegerValue { get; set; } - public double? DoubleValue { get; set; } - public string? StringValue { get; set; } + public long IntegerValue { get; set; } = 0; + public double DoubleValue { get; set; } = 0.0; + public string StringValue { get; set; } = String.Empty; } }