You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ref: Use .NET 6.0 ArgumentNullException throw helpers #4982
This could increase likeliness of inlining (since the method doesn't throw directly anymore),
and also decrease the Assembly size slightly (due to less user code).
In #4879 we updated Polyfill which adds this method (and related methods like ArgumentException.ThrowIfNullOrEmpty and ArgumentOutOfRangeException.ThrowIfNegativeOrZero and more) to our netstandard2.1, netstandard2.0 and net462 targets, via C# 14 Extension members.
These can be enabled via <PolyArgumentExceptions>true</PolyArgumentExceptions>.
See 3daa9fe
Although this makes our code less verbose and more efficient,
as a drawback, it does increase the Assembly Size of the netstandard2.1, netstandard2.0 and net462 targets,
and with that the size of the entire Sentry NuGet package.
See Assembly size impact
Activity
linear commentedon Mar 4, 2026
NET-607