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
/// <param name="value">The value to test. It cannot be null.</param>
However, the implementation appears to permit null (the only place it's used is being passed to an object? argument in a helper method), the purpose of an attribute like [Required] is to validate one isn't null (which suggests null could otherwise be valid, and the new .NET 8 source generator for options is having to emit code like:
/// <param name="value">The value to test. It cannot be null.</param>
However, the implementation appears to permit null, the purpose of an attribute like [Required] is to validate one isn't null (which suggests null could otherwise be valid, and the new .NET 8 source generator for options is having to emit code like:
It's defined like:
and the XML doc comment states:
/// <param name="value">The value to test. It cannot be null.</param>
However, the implementation appears to permit null (the only place it's used is being passed to an
object?
argument in a helper method), the purpose of an attribute like[Required]
is to validate one isn't null (which suggests null could otherwise be valid, and the new .NET 8 source generator for options is having to emit code like:(note the
!
on the first argument) because the input might be null but the method is defined to not accept null.cc: @jeffhandley, @eiriktsarpalis
The text was updated successfully, but these errors were encountered: