lixiaojun
2025-01-22 46f64905a3c309a50c0f245b3350cdeb8dd699c6
WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/ShouldSerializeContractResolver.cs
@@ -1,5 +1,5 @@
using Newtonsoft.Json.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -7,7 +7,7 @@
using System.Text;
using System.Threading.Tasks;
namespace Hydro.MapView
namespace Yw.WinFrmUI.Q3d
{
    public class ShouldSerializeContractResolver : DefaultContractResolver
    {
@@ -15,7 +15,7 @@
        {
            JsonProperty property = base.CreateProperty(member, memberSerialization);
            if (property.DeclaringType == typeof(Template) && member.Name == "network")
            if (property.DeclaringType == typeof(Settings) && member.Name == "network")
            {
                property.ShouldSerialize = instance => false;
            }