18 references to NotNull
Microsoft.AspNetCore.Http.Extensions (4)
RequestDelegateFactory.cs (3)
1814
var elementTypeOptional = !isNotNullable || (elementTypeNullabilityInfo?.ReadState != NullabilityState.
NotNull
);
1943
if (nullability.ReadState != NullabilityState.
NotNull
&& !parameter.HasDefaultValue)
2413
|| nullabilityInfo.ReadState != NullabilityState.
NotNull
;
src\Shared\PropertyAsParameterInfo.cs (1)
208
NullabilityState.
NotNull
=> HasDefaultValue,
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
src\Shared\PropertyAsParameterInfo.cs (1)
208
NullabilityState.
NotNull
=> HasDefaultValue,
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
435
var isOptional = nullability != null && nullability.ReadState != NullabilityState.
NotNull
;
Microsoft.AspNetCore.OpenApi (3)
Services\OpenApiGenerator.cs (2)
311
|| nullability.ReadState != NullabilityState.
NotNull
388
: parameter.HasDefaultValue || nullability.ReadState != NullabilityState.
NotNull
;
src\Shared\PropertyAsParameterInfo.cs (1)
208
NullabilityState.
NotNull
=> HasDefaultValue,
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (5)
151
codeAnalysisReadState = NullabilityState.
NotNull
;
162
codeAnalysisWriteState = NullabilityState.
NotNull
;
359
state = NullabilityState.
NotNull
;
454
if (nullability.ReadState == NullabilityState.
NotNull
)
628
1 => NullabilityState.
NotNull
,
System.Text.Json (4)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (4)
311
IsNullable = DetermineParameterNullability(reflectionInfo, nullabilityCtx) is not NullabilityState.
NotNull
,
488
propertyInfo.IsGetNullable = nullabilityInfo.ReadState is not NullabilityState.
NotNull
;
489
propertyInfo.IsSetNullable = nullabilityInfo.WriteState is not NullabilityState.
NotNull
;
498
return NullabilityState.
NotNull
;