ModernUO/Projects
Kamron Batman b3d755e6ad perf(types): numeric parsing via INumber<T>.TryParse instead of Convert.ChangeType
Types.TryParse parsed every numeric as ulong then Convert.ChangeType(num, type) to
the target type — which boxes via conversion, rejects signed values (ulong.TryParse
fails on '-5', forcing a fall-through to the slow reflection Parse), and can overflow.
It now dispatches the runtime Type to the concrete INumber<T>.TryParse(span, style, ...)
(the Type-parameter equivalent of AdvancedSearch's generic TryParseNumericValue<T>),
parsing the string straight into the target type — signed/per-type ranges honored, hex
supported, no Convert.ChangeType. Serial/entity properties keep the full-range ulong path.

Adds numeric TryParse coverage (int/byte/uint/long, negative, hex, out-of-range).
Full suite 543/543.
2026-07-20 09:58:22 -07:00
..
Application fix: Bumps dependencies. (#2531) 2026-07-14 15:17:55 -07:00
BuildTool fix: Bumps dependencies. (#2531) 2026-07-14 15:17:55 -07:00
Logger fix: Bumps dependencies. (#2531) 2026-07-14 15:17:55 -07:00
Server fix(opl): only apply the ':#' cliloc marker to integer values (#2540) 2026-07-19 10:49:16 -07:00
Server.Tests fix(opl): only apply the ':#' cliloc marker to integer values (#2540) 2026-07-19 10:49:16 -07:00
UOContent perf(types): numeric parsing via INumber<T>.TryParse instead of Convert.ChangeType 2026-07-20 09:58:22 -07:00
UOContent.Tests perf(types): numeric parsing via INumber<T>.TryParse instead of Convert.ChangeType 2026-07-20 09:58:22 -07:00