| | |
| | | using Newtonsoft.Json.Serialization; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Serialization; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace Hydro.MapView |
| | | namespace Yw.WinFrmUI.Q3d |
| | | { |
| | | public class ShouldSerializeContractResolver : DefaultContractResolver |
| | | { |
| | |
| | | { |
| | | 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; |
| | | } |