約3,280件1ページ目

日本語のみで絞り込む

2023/2/16 -If you're seeing boxing allocation coming from ThrowIfNull while running under a profiler, I expect you're likely profiling unoptimized code ( ...

2024/8/29 -Originally the guard clauses were using if (argument == null) { } checks but, since converting them to ArgumentNullException.ThrowIfNull() , I ...

2023/5/27 -ThrowIfNull is a useful helper to reduce line and repeated code (null test, etc.), enable the option will best fit with cases where the message ...

2023/1/22 -There's also a problem with ArgumentNulllException.ThrowIfNull . The ParamName property is null if the paramName argument is not specified, ...

2023/12/8 -ThrowIfNull method (e.g. netstandard2.0). This effectively creates a warning that cannot be fixed, only suppressed. Reproduction Steps. Create a ...

ArgumentNullException.ThrowIfNull ... The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

When a nullable struct, for example, int? or Guid? , is passed to ArgumentNullException.ThrowIfNull , it's boxed to an object, causing a performance penalty.

If you don't customize the exception, the default behavior will be used. Use the Throw() or ThrowIfNull() method to throw the default exception. // ...

2023/4/18 -ThrowIfNull throws an ArgumentNullException which explicitly means that caller of the function did something wrong. If the checks are for the ...

2021/12/10 -ThrowIfNull(object) . string.IsNullOrEmpty(text) is a frequent check especially in web/Console project. At first I thought InvalidDataException ...