wanshenmean
2026-03-13 770e9488fad76cdf987e6992f84ff4064b5afcfb
分支
用户 wanshenmean <cathay_xy@163.com>
星期五, 三月 13, 2026 13:28 +0800
提交者 wanshenmean <cathay_xy@163.com>
星期五, 三月 13, 2026 13:28 +0800
提交770e9488fad76cdf987e6992f84ff4064b5afcfb
目录 c7d12e9a762fbc69d1a2c6a75bf293b9a6ff6263 目录 | zip | gz
上一版本 750ff5304ebbe9cff4f07997f05fe6274b3a2e22 查看 | 对比
fix: address code quality issues in I/Q/T/C regions

- Add disposed checks to MemoryRegion base class Read/Write/Clear
- Add proper Dispose(bool) virtual method to MemoryRegion
- Remove redundant _disposed fields from I/Q regions
- Add timerNumber/counterNumber > 0 validation in T/C regions
- Add XML documentation to T/C region public methods
- Add overflow validation in T/C region constructors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
已修改5个文件
171 ■■■■■ 文件已修改
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/CRegion.cs 53 ●●●● 对比 | 查看 | 原始文档 | blame | 历史
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/IRegion.cs 28 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/MemoryRegion.cs 9 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/QRegion.cs 28 ●●●●● 对比 | 查看 | 原始文档 | blame | 历史
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Core/Memory/TRegion.cs 53 ●●●● 对比 | 查看 | 原始文档 | blame | 历史