using Newtonsoft.Json; using System.Text; namespace PlcTool.Siemens.Entity; public class SemS7Result { public bool Success { get; set; } = false; public int? ErrCode { get; set; } public string? Message { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } } /// /// PLC操作的返回泛型类 /// /// public class SemS7Result : SemS7Result { public T? Value { get; set; } public override string ToString() { return JsonConvert.SerializeObject(this); } }