04 2024 档案
摘要:public static class LogHelp { private static readonly ILog logger; private static readonly log4net.ILog LInfo = log4net.LogManager.GetLogger("LogInfo"
阅读全文
摘要:/// <summary> /// 将实体2的值动态赋值给实体1(名称一样的属性进行赋值) /// </summary> /// <param name="model1">实体1</param> /// <param name="model2">实体2</param> /// <returns>赋值
阅读全文
摘要:一、封装基本连接、读写。读写 ReadHoldingRegisters ,当前有四种方案,现在只使用 ReadHoldingRegisters int 类型,需要其他方案自行新增。 public class ModbusClient { private TcpClient? tcpClient; p
阅读全文