From a01861a95ede48fa4979a47b24f21616e362e534 Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期二, 19 十一月 2024 16:29:46 +0800
Subject: [PATCH] 用水当量模块

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/ShouldSerializeContractResolver.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/ShouldSerializeContractResolver.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/ShouldSerializeContractResolver.cs
index 8868296..299bfe9 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/ShouldSerializeContractResolver.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/ShouldSerializeContractResolver.cs
@@ -1,5 +1,5 @@
-锘縰sing Newtonsoft.Json.Serialization;
-using Newtonsoft.Json;
+锘縰sing 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;
             }

--
Gitblit v1.9.3