Browse Source
Factor the validation logic (most notably the exception string formatting) out of the generic Attach method into a non-generic static helper. It only uses typeof(TValue), not TValue, so sharing it avoids duplicating the code per generic instantiation, a meaningful NativeAOT size saving (~3.3 KB => ~2.5 KB per instantiation). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>pull/21552/head
1 changed files with 24 additions and 9 deletions
Loading…
Reference in new issue