1867 references to NotNullWhen
Aspire.Azure.Messaging.EventHubs.Tests (3)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (3)
98protected override bool TryGetHeader(string name, [NotNullWhen(true)] out string? value) 183protected override bool TryGetHeader(string name, [NotNullWhen(true)] out string? value) 195protected override bool TryGetHeaderValues(string name, [NotNullWhen(true)] out IEnumerable<string>? values)
Aspire.Azure.Security.KeyVault.Tests (3)
MockTransport.cs (3)
98protected override bool TryGetHeader(string name, [NotNullWhen(true)] out string? value) 183protected override bool TryGetHeader(string name, [NotNullWhen(true)] out string? value) 195protected override bool TryGetHeaderValues(string name, [NotNullWhen(true)] out IEnumerable<string>? values)
Aspire.Confluent.Kafka (3)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\Shared\PropertyFetcher.AOT.cs (3)
53[NotNullWhen(true)] 152[NotNullWhen(true)] 201[NotNullWhen(true)]
Aspire.Dashboard (25)
Configuration\DashboardOptions.cs (5)
36internal bool TryParseOptions([NotNullWhen(false)] out string? errorMessage) 106internal bool TryParseOptions([NotNullWhen(false)] out string? errorMessage) 178internal bool TryParseOptions([NotNullWhen(false)] out string? errorMessage) 213public static bool TryParseBindingAddress(string address, [NotNullWhen(true)] out BindingAddress? bindingAddress) 273internal bool TryParseOptions([NotNullWhen(false)] out IEnumerable<string>? errorMessages)
ConsoleLogs\UrlParser.cs (1)
16public static bool TryParse(string? text, Func<string, string>? nonMatchFragmentCallback, [NotNullWhen(true)] out string? modifiedText)
DashboardWebApplication.cs (2)
449private static bool TryGetDashboardOptions(WebApplicationBuilder builder, IConfigurationSection dashboardConfigSection, [NotNullWhen(true)] out DashboardOptions? dashboardOptions, [NotNullWhen(false)] out IEnumerable<string>? failureMessages)
Model\BrowserLinkOutgoingPeerResolver.cs (1)
23public bool TryResolvePeerName(KeyValuePair<string, string>[] attributes, [NotNullWhen(true)] out string? name)
Model\ResourceOutgoingPeerResolver.cs (2)
62public bool TryResolvePeerName(KeyValuePair<string, string>[] attributes, [NotNullWhen(true)] out string? name) 95bool TryMatchResourceAddress(string value, [NotNullWhen(true)] out string? name)
Model\ResourceViewModel.cs (1)
199private static bool TryGetIcon(IconKey key, IconSize size, [NotNullWhen(true)] out CustomIcon? icon)
Model\ResourceViewModelExtensions.cs (4)
42public static bool TryGetContainerImage(this ResourceViewModel resource, [NotNullWhen(returnValue: true)] out string? containerImage) 47public static bool TryGetProjectPath(this ResourceViewModel resource, [NotNullWhen(returnValue: true)] out string? projectPath) 52public static bool TryGetExecutablePath(this ResourceViewModel resource, [NotNullWhen(returnValue: true)] out string? executablePath) 62private static bool TryGetCustomDataString(this ResourceViewModel resource, string key, [NotNullWhen(returnValue: true)] out string? s)
Model\TargetLocationInterceptor.cs (1)
13public static bool InterceptTargetLocation(string appBaseUri, string originalTargetLocation, [NotNullWhen(true)] out string? newTargetLocation)
Otlp\Model\OtlpUnits.cs (1)
35private static bool TryProcessRateUnits(string updatedUnit, [NotNullWhen(true)] out string? updatedPerUnit)
Otlp\Storage\TelemetryRepository.cs (2)
290private bool TryAddScope(Dictionary<string, OtlpScope> scopes, InstrumentationScope? scope, [NotNullWhen(true)] out OtlpScope? s) 1007static bool TryGetTraceById(CircularBuffer<OtlpTrace> traces, ReadOnlyMemory<byte> traceId, [NotNullWhen(true)] out OtlpTrace? trace)
src\Shared\ConsoleLogs\TimestampParser.cs (1)
12public static bool TryParseConsoleTimestamp(string text, [NotNullWhen(true)] out TimestampParserResult? result)
src\Shared\StringUtils.cs (2)
10public static bool TryGetUriFromDelimitedString([NotNullWhen(true)] string? input, string delimiter, [NotNullWhen(true)] out Uri? uri)
Utils\GlobalizationHelpers.cs (1)
90public static bool TryGetKnownParentCulture(List<CultureInfo> knownCultures, CultureInfo culture, [NotNullWhen(true)] out CultureInfo? matchedCulture)
Utils\ValueExtensions.cs (1)
31public static bool TryConvertToString(this Value value, [NotNullWhen(returnValue: true)] out string? s)
Aspire.Hosting (21)
ApplicationModel\ResourceExtensions.cs (7)
22public static bool TryGetLastAnnotation<T>(this IResource resource, [NotNullWhen(true)] out T? annotation) where T : IResourceAnnotation 43public static bool TryGetAnnotationsOfType<T>(this IResource resource, [NotNullWhen(true)] out IEnumerable<T>? result) where T : IResourceAnnotation 77public static bool TryGetAnnotationsIncludingAncestorsOfType<T>(this IResource resource, [NotNullWhen(true)] out IEnumerable<T>? result) where T : IResourceAnnotation 147public static bool TryGetEnvironmentVariables(this IResource resource, [NotNullWhen(true)] out IEnumerable<EnvironmentCallbackAnnotation>? environmentVariables) 443public static bool TryGetContainerMounts(this IResource resource, [NotNullWhen(true)] out IEnumerable<ContainerMountAnnotation>? volumeMounts) 454public static bool TryGetEndpoints(this IResource resource, [NotNullWhen(true)] out IEnumerable<EndpointAnnotation>? endpoints) 492public static bool TryGetContainerImageName(this IResource resource, [NotNullWhen(true)] out string? imageName)
Dashboard\ResourcePublisher.cs (2)
28internal bool TryGetResource(string resourceName, [NotNullWhen(returnValue: true)] out ResourceSnapshot? snapshot, [NotNullWhen(returnValue: true)] out IResource? resource)
Dashboard\TransportOptionsValidator.cs (1)
76static bool TryValidateGrpcEndpointUrl(string configName, string? value, [NotNullWhen(false)] out ValidateOptionsResult? result)
Dcp\Model\Executable.cs (1)
225public bool TryGetProjectLaunchConfiguration([NotNullWhen(true)] out ProjectLaunchConfiguration? launchConfiguration)
Dcp\Model\ExecutableReplicaSet.cs (1)
44public bool TryGetAnnotationAsObjectList<TValue>(string annotationName, [NotNullWhen(true)] out List<TValue>? list)
Dcp\Model\ModelCommon.cs (2)
58public bool TryGetAnnotationAsObjectList<TValue>(string annotationName, [NotNullWhen(true)] out List<TValue>? list) 63internal static bool TryGetAnnotationAsObjectList<TValue>(IDictionary<string, string>? annotations, string annotationName, [NotNullWhen(true)] out List<TValue>? list)
Orchestrator\RelationshipEvaluator.cs (1)
33static bool TryGetParent(IResource resource, [NotNullWhen(true)] out IResource? parent)
src\Shared\ConsoleLogs\TimestampParser.cs (1)
12public static bool TryParseConsoleTimestamp(string text, [NotNullWhen(true)] out TimestampParserResult? result)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (3)
104private static bool TrySelectLaunchProfileByOrder(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName) 118private static bool TrySelectLaunchProfileFromDefaultAnnotation(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName) 144private static bool TrySelectLaunchProfileFromAnnotation(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName)
src\Shared\StringUtils.cs (2)
10public static bool TryGetUriFromDelimitedString([NotNullWhen(true)] string? input, string delimiter, [NotNullWhen(true)] out Uri? uri)
Aspire.Hosting.Azure (1)
ExistingAzureResourceExtensions.cs (1)
86public static bool TryGetExistingAzureResourceAnnotation(this IResource resource, [NotNullWhen(true)] out ExistingAzureResourceAnnotation? existingAzureResourceAnnotation)
Aspire.Hosting.Azure.Functions (3)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (3)
104private static bool TrySelectLaunchProfileByOrder(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName) 118private static bool TrySelectLaunchProfileFromDefaultAnnotation(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName) 144private static bool TrySelectLaunchProfileFromAnnotation(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName)
Aspire.Hosting.Tests (1)
Helpers\DashboardServiceDataExtensions.cs (1)
30private static bool TryFindMatch(IEnumerable<ResourceSnapshot> resources, string resourceName, Func<ResourceSnapshot, bool> predicate, [NotNullWhen(true)] out ResourceSnapshot? match)
Aspire.Microsoft.Data.SqlClient (3)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (3)
49[NotNullWhen(true)] 148[NotNullWhen(true)] 197[NotNullWhen(true)]
Aspire.Microsoft.EntityFrameworkCore.SqlServer (3)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Shared\DiagnosticSourceInstrumentation\PropertyFetcher.cs (3)
49[NotNullWhen(true)] 148[NotNullWhen(true)] 197[NotNullWhen(true)]
Aspire.StackExchange.Redis (4)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Implementation\RedisProfilerEntryToActivityConverter.cs (1)
67[NotNullWhen(true)]
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\Shared\PropertyFetcher.AOT.cs (3)
55[NotNullWhen(true)] 154[NotNullWhen(true)] 203[NotNullWhen(true)]
BuildValidator (3)
LocalReferenceResolver.cs (3)
105public bool TryGetCachedAssemblyInfo(Guid mvid, [NotNullWhen(true)] out AssemblyInfo? assemblyInfo) => _mvidMap.TryGetValue(mvid, out assemblyInfo); 117public bool TryResolveReferences(MetadataReferenceInfo metadataReferenceInfo, [NotNullWhen(true)] out MetadataReference? metadataReference) 144public bool TryGetAssemblyInfo(MetadataReferenceInfo metadataReferenceInfo, [NotNullWhen(true)] out AssemblyInfo? assemblyInfo)
ConfigurationSchemaGenerator (5)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (5)
64private bool IsValidRootConfigType([NotNullWhen(true)] ITypeSymbol? type) 219private static bool IsNullable(ITypeSymbol type, [NotNullWhen(true)] out ITypeSymbol? underlyingType) 753private bool TryGetElementType(INamedTypeSymbol type, [NotNullWhen(true)] out ITypeSymbol? elementType) 767private bool IsCandidateDictionary(INamedTypeSymbol type, [NotNullWhen(true)] out ITypeSymbol? keyType, [NotNullWhen(true)] out ITypeSymbol? elementType)
dotnet-dev-certs (3)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
784private static bool TryGetOpenSslDirectory([NotNullWhen(true)] out string? openSslDir) 826private static bool TryGetOpenSslHash(string certificatePath, [NotNullWhen(true)] out string? hash)
illink (37)
IOperationGenerator (1)
IOperationClassWriter.cs (1)
1107private static bool IsImmutableArray(string typeName, [NotNullWhen(true)] out string? arrayType)
Microsoft.AspNetCore.Antiforgery (4)
Internal\DefaultAntiforgery.cs (2)
432[NotNullWhen(true)] out AntiforgeryToken? cookieToken, 433[NotNullWhen(true)] out AntiforgeryToken? requestToken)
Internal\DefaultAntiforgeryTokenGenerator.cs (1)
106[NotNullWhen(false)] out string? message)
Internal\IAntiforgeryTokenGenerator.cs (1)
49[NotNullWhen(false)] out string? message);
Microsoft.AspNetCore.AzureAppServices.HostingStartup (1)
HostingStartupConfigurationExtensions.cs (1)
28public static bool TryGetOption(this IConfiguration configuration, string hostingStartupName, string featureName, [NotNullWhen(true)] out string? value)
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\ParameterPolicyActivator.cs (1)
74[NotNullWhen(true)] out Type? policyType)
Microsoft.AspNetCore.Components.Endpoints (4)
FormMapping\Converters\CollectionConverter.cs (1)
57[NotNullWhen(true)] out TCollection? result,
FormMapping\Converters\DictionaryConverter.cs (1)
33[NotNullWhen(true)] out TDictionary? result,
FormMapping\FormDataReader.cs (1)
244internal readonly bool TryGetValue([NotNullWhen(true)] out string? value)
FormMapping\HttpContextFormDataProvider.cs (1)
30public bool TryGetIncomingHandlerName([NotNullWhen(true)] out string? incomingHandlerName)
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Binding\FormDataMapperTests.cs (2)
2258public static bool TryParse([NotNullWhen(true)] string s, IFormatProvider provider, [MaybeNullWhen(false)] out Point result) 2306public static bool TryParse([NotNullWhen(true)] string s, IFormatProvider provider, [MaybeNullWhen(false)] out ValuePoint result)
Microsoft.AspNetCore.Components.Forms (2)
EditContextDataAnnotationsExtensions.cs (1)
157private static bool TryGetValidatableProperty(in FieldIdentifier fieldIdentifier, [NotNullWhen(true)] out PropertyInfo? propertyInfo)
EditContextProperties.cs (1)
39public bool TryGetValue(object key, [NotNullWhen(true)] out object? value)
Microsoft.AspNetCore.Components.Server (5)
Circuits\IServerComponentDeserializer.cs (1)
13bool TryDeserializeRootComponentOperations(string serializedComponentOperations, [NotNullWhen(true)] out RootComponentOperationBatch? operationBatch);
Circuits\ServerComponentDeserializer.cs (3)
145public bool TryDeserializeWebRootComponentDescriptor(ComponentMarker record, [NotNullWhen(true)] out WebRootComponentDescriptor? result) 206private bool TryDeserializeComponentTypeAndParameters(ServerComponent serverComponent, [NotNullWhen(true)] out Type? componentType, out ParameterView parameters) 294public bool TryDeserializeRootComponentOperations(string serializedComponentOperations, [NotNullWhen(true)] out RootComponentOperationBatch? result)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
28public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message)
Microsoft.AspNetCore.Components.Web (12)
Forms\InputBase.cs (1)
180protected abstract bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage);
Forms\InputCheckbox.cs (1)
52protected override bool TryParseValueFromString(string? value, out bool result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputDate.cs (1)
110protected override bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputExtensions.cs (1)
14[NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputNumber.cs (1)
68protected override bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputRadioGroup.cs (1)
82protected override bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputSelect.cs (1)
66protected override bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputText.cs (1)
46protected override bool TryParseValueFromString(string? value, out string? result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputTextArea.cs (1)
46protected override bool TryParseValueFromString(string? value, out string? result, [NotNullWhen(false)] out string? validationErrorMessage)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
230protected bool TryCreateScopeQualifiedEventName(int componentId, string assignedEventName, [NotNullWhen(true)] out string? scopeQualifiedEventName)
JSComponents\JSComponentConfigurationStore.cs (1)
46[NotNullWhen(true)][DynamicallyAccessedMembers(LinkerFlags.Component)] out Type? componentType)
WebEventData\WebEventData.cs (1)
90[NotNullWhen(true)] out EventArgs? eventArgs)
Microsoft.AspNetCore.Connections.Abstractions (1)
NamedPipeEndPoint.cs (1)
55public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
784private static bool TryGetOpenSslDirectory([NotNullWhen(true)] out string? openSslDir) 826private static bool TryGetOpenSslHash(string certificatePath, [NotNullWhen(true)] out string? hash)
Microsoft.AspNetCore.Grpc.JsonTranscoding (8)
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (1)
254private bool TryGetMethodDescriptor(string methodName, [NotNullWhen(true)]out MethodDescriptor? methodDescriptor)
Internal\Json\EnumConverter.cs (1)
100private static bool TryConvertToEnum(int integer, [NotNullWhen(true)] out TEnum? value)
Internal\Json\MessageTypeInfoResolver.cs (1)
64private bool IsStandardMessage(Type type, [NotNullWhen(true)] out MessageDescriptor? messageDescriptor)
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (1)
231private bool TryParseLiteral([NotNullWhen(true)] out string? literal)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (4)
66public static bool TryResolveDescriptors(MessageDescriptor messageDescriptor, IList<string> path, bool allowJsonName, [NotNullWhen(true)]out List<FieldDescriptor>? fieldDescriptors) 335public static bool TryGetHttpRule(MethodDescriptor methodDescriptor, [NotNullWhen(true)] out HttpRule? httpRule) 352public static bool TryResolvePattern(HttpRule http, [NotNullWhen(true)] out string? pattern, [NotNullWhen(true)] out string? verb)
Microsoft.AspNetCore.Grpc.Swagger (6)
Internal\GrpcDataContractResolver.cs (1)
48private bool TryCustomizeMessage(MessageDescriptor messageDescriptor, [NotNullWhen(true)] out DataContract? dataContract)
src\Grpc\JsonTranscoding\src\Shared\HttpRoutePatternParser.cs (1)
231private bool TryParseLiteral([NotNullWhen(true)] out string? literal)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (4)
66public static bool TryResolveDescriptors(MessageDescriptor messageDescriptor, IList<string> path, bool allowJsonName, [NotNullWhen(true)]out List<FieldDescriptor>? fieldDescriptors) 335public static bool TryGetHttpRule(MethodDescriptor methodDescriptor, [NotNullWhen(true)] out HttpRule? httpRule) 352public static bool TryResolvePattern(HttpRule http, [NotNullWhen(true)] out string? pattern, [NotNullWhen(true)] out string? verb)
Microsoft.AspNetCore.HeaderParsing (33)
HeaderParser.cs (2)
25public abstract bool TryParse(StringValues values, [NotNullWhen(true)] out T? result, [NotNullWhen(false)] out string? error);
HeaderParsingFeature.cs (2)
43public bool TryGetHeaderValue<T>(HeaderKey<T> header, [NotNullWhen(true)] out T? value) 57public bool TryGetHeaderValue<T>(HeaderKey<T> header, [NotNullWhen(true)] out T? value, out ParsingResult result)
HeaderParsingHttpRequestExtensions.cs (2)
45public static bool TryGetHeaderValue<T>(this HttpRequest request, HeaderKey<T> header, [NotNullWhen(true)] out T? value) 62public static bool TryGetHeaderValue<T>(this HttpRequest request, HeaderKey<T> header, [NotNullWhen(true)] out T? value, out ParsingResult result)
HostHeaderValue.cs (1)
71public static bool TryParse(string value, [NotNullWhen(true)] out HostHeaderValue result)
Parsers\CacheControlHeaderValueParser.cs (2)
14public override bool TryParse(StringValues values, [NotNullWhen(true)] out CacheControlHeaderValue? result, [NotNullWhen(false)] out string? error)
Parsers\ContentDispositionHeaderValueParser.cs (2)
14public override bool TryParse(StringValues values, [NotNullWhen(true)] out ContentDispositionHeaderValue? result, [NotNullWhen(false)] out string? error)
Parsers\CookieHeaderValueListParser.cs (2)
15public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<CookieHeaderValue>? result, [NotNullWhen(false)] out string? error)
Parsers\DateTimeOffsetParser.cs (2)
15public override bool TryParse(StringValues values, [NotNullWhen(true)] out DateTimeOffset result, [NotNullWhen(false)] out string? error)
Parsers\EntityTagHeaderValueListParser.cs (2)
15public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<EntityTagHeaderValue>? result, [NotNullWhen(false)] out string? error)
Parsers\HostHeaderValueParser.cs (2)
13public override bool TryParse(StringValues values, [NotNullWhen(true)] out HostHeaderValue result, [NotNullWhen(false)] out string? error)
Parsers\IPAddressListParser.cs (2)
16public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<IPAddress>? result, [NotNullWhen(false)] out string? error)
Parsers\MediaTypeHeaderValueListParser.cs (2)
15public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<MediaTypeHeaderValue>? result, [NotNullWhen(false)] out string? error)
Parsers\MediaTypeHeaderValueParser.cs (2)
14public override bool TryParse(StringValues values, [NotNullWhen(true)] out MediaTypeHeaderValue? result, [NotNullWhen(false)] out string? error)
Parsers\RangeConditionHeaderValueParser.cs (2)
14public override bool TryParse(StringValues values, [NotNullWhen(true)] out RangeConditionHeaderValue? result, [NotNullWhen(false)] out string? error)
Parsers\RangeHeaderValueParser.cs (2)
14public override bool TryParse(StringValues values, [NotNullWhen(true)] out RangeHeaderValue? result, [NotNullWhen(false)] out string? error)
Parsers\StringWithQualityHeaderValueListParser.cs (2)
15public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<StringWithQualityHeaderValue>? result, [NotNullWhen(false)] out string? error)
Parsers\UriParser.cs (2)
14public override bool TryParse(StringValues values, [NotNullWhen(true)] out Uri? result, [NotNullWhen(false)] out string? error)
Microsoft.AspNetCore.Hosting (1)
Internal\HostingMetrics.cs (1)
144private static bool TryGetHttpVersion(string protocol, [NotNullWhen(true)] out string? version)
Microsoft.AspNetCore.Http (7)
Features\FormFeature.cs (2)
345private static bool HasApplicationFormContentType([NotNullWhen(true)] MediaTypeHeaderValue? contentType) 351private static bool HasMultipartFormContentType([NotNullWhen(true)] MediaTypeHeaderValue? contentType)
Internal\RequestCookieCollection.cs (1)
119public bool TryGetValue(string key, [NotNullWhen(true)] out string? value)
src\Http\Shared\CookieHeaderParserShared.cs (4)
59public static bool TryParseValue(StringSegment value, ref int index, bool supportsMultipleValues, [NotNullWhen(true)] out StringSegment? parsedName, [NotNullWhen(true)] out StringSegment? parsedValue) 140internal static bool TryGetCookieLength(StringSegment input, ref int offset, [NotNullWhen(true)] out StringSegment? parsedName, [NotNullWhen(true)] out StringSegment? parsedValue)
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\UseMiddlewareExtensions.cs (1)
239private static bool TryGetServiceKey(ParameterInfo parameterInfo, [NotNullWhen(true)] out object? key)
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionManager.cs (1)
49internal bool TryGetConnection(string id, [NotNullWhen(true)] out HttpConnectionContext? connection)
Microsoft.AspNetCore.Http.Extensions (9)
src\Components\Endpoints\src\FormMapping\Converters\CollectionConverter.cs (1)
57[NotNullWhen(true)] out TCollection? result,
src\Components\Endpoints\src\FormMapping\Converters\DictionaryConverter.cs (1)
33[NotNullWhen(true)] out TDictionary? result,
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
244internal readonly bool TryGetValue([NotNullWhen(true)] out string? value)
src\Shared\Json\JsonSerializerExtensions.cs (1)
16public static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
398private static bool IsTaskType(Type methodReturnType, [NotNullWhen(true)] out Type? resultType)
src\Shared\ParameterBindingMethodCache.cs (4)
532private static bool TryGetDateTimeTryParseMethod(Type type, [NotNullWhen(true)] out MethodInfo? methodInfo) 568private static bool TryGetNumberStylesTryGetMethod(Type type, [NotNullWhen(true)] out MethodInfo? method, [NotNullWhen(true)] out NumberStyles? numberStyles) 723public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.AspNetCore.Http.Features (2)
IRequestCookieCollection.cs (1)
66bool TryGetValue(string key, [NotNullWhen(true)] out string? value);
ISession.cs (1)
48bool TryGetValue(string key, [NotNullWhen(true)] out byte[]? value);
Microsoft.AspNetCore.Http.Results (3)
RedirectHttpResult.cs (1)
133public static bool IsLocalUrl([NotNullWhen(true)][StringSyntax(StringSyntaxAttribute.Uri)] string? url)
src\Shared\Json\JsonSerializerExtensions.cs (1)
16public static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType)
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
33internal static bool IsLocalUrl([NotNullWhen(true)] string? url)
Microsoft.AspNetCore.HttpLogging (2)
MediaTypeHelpers.cs (1)
22public static bool TryGetEncodingForMediaType(string? contentType, List<MediaTypeState> mediaTypeList, [NotNullWhen(true)] out Encoding? encoding)
src\Shared\Buffers\BufferSegmentStack.cs (1)
23public bool TryPop([NotNullWhen(true)] out BufferSegment? result)
Microsoft.AspNetCore.HttpOverrides (2)
IPNetwork.cs (2)
153public static bool TryParse(ReadOnlySpan<char> networkSpan, [NotNullWhen(true)] out IPNetwork? network) 182[NotNullWhen(true)] out IPAddress? prefix,
Microsoft.AspNetCore.Mvc.Abstractions (6)
IUrlHelper.cs (1)
73bool IsLocalUrl([NotNullWhen(true)][StringSyntax(StringSyntaxAttribute.Uri)] string? url);
ModelBinding\ModelStateDictionary.cs (1)
731public bool TryGetValue(string key, [NotNullWhen(true)] out ModelStateEntry? value)
src\Shared\ParameterBindingMethodCache.cs (4)
532private static bool TryGetDateTimeTryParseMethod(Type type, [NotNullWhen(true)] out MethodInfo? methodInfo) 568private static bool TryGetNumberStylesTryGetMethod(Type type, [NotNullWhen(true)] out MethodInfo? method, [NotNullWhen(true)] out NumberStyles? numberStyles) 723public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
src\Shared\RoslynUtils\TypeHelper.cs (2)
45private static bool TryParseLocalFunctionName(string generatedName, [NotNullWhen(true)] out string? originalName) 63internal static bool TryGetNonCompilerGeneratedMethodName(MethodInfo method, [NotNullWhen(true)] out string? originalName)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2671public static bool TryParse([NotNullWhen(true)] string s, IFormatProvider provider, [MaybeNullWhen(false)] out TryParsableEmployee result)
Microsoft.AspNetCore.Mvc.Core (9)
ApiExplorer\ApiConventionResult.cs (1)
33[NotNullWhen(true)] out ApiConventionResult? result)
Infrastructure\AsyncEnumerableReader.cs (1)
52public bool TryGetReader(Type type, [NotNullWhen(true)] out Func<object, CancellationToken, Task<ICollection>>? reader)
ModelBinding\ModelBinderFactory.cs (1)
187private bool TryGetCachedBinder(ModelMetadata metadata, object? cacheToken, [NotNullWhen(true)] out IModelBinder? binder)
Routing\UrlHelperBase.cs (3)
47public virtual bool IsLocalUrl([NotNullWhen(true)][StringSyntax(StringSyntaxAttribute.Uri)] string? url) => CheckIsLocalUrl(url); 315internal static bool CheckIsLocalUrl([NotNullWhen(true)] string? url) 468[NotNullWhen(true)] out string? url)
src\Shared\Json\JsonSerializerExtensions.cs (1)
16public static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
398private static bool IsTaskType(Type methodReturnType, [NotNullWhen(true)] out Type? resultType)
src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
33internal static bool IsLocalUrl([NotNullWhen(true)] string? url)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
SimpleTypeModelBinderIntegrationTest.cs (2)
813public static bool TryParse([NotNullWhen(true)] string s, [MaybeNullWhen(false)] out SampleModel result) 825public static bool TryParse([NotNullWhen(true)] string s, [MaybeNullWhen(false)] out SampleTryParsableModel result)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
52public bool TryGetReader(Type type, [NotNullWhen(true)] out Func<object, CancellationToken, Task<ICollection>>? reader)
Microsoft.AspNetCore.Mvc.Razor (2)
TagHelpers\UrlResolutionTagHelper.cs (2)
243protected bool TryResolveUrl([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string url, [NotNullWhen(true)] out IHtmlContent? resolvedUrl) 277private static bool TryCreateTrimmedString(string input, [NotNullWhen(true)] out string? trimmed)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
PageDirectiveFeature.cs (1)
32public static bool TryGetPageDirective(ILogger logger, RazorProjectItem projectItem, [NotNullWhen(true)] out string? template)
Microsoft.AspNetCore.Mvc.RazorPages (1)
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (1)
211internal static bool TryParseHandlerMethod(string methodName, [NotNullWhen(true)] out string? httpMethod, out string? handler)
Microsoft.AspNetCore.OpenApi (9)
Extensions\ApiDescriptionExtensions.cs (1)
105public static bool TryGetBodyParameter(this ApiDescription apiDescription, [NotNullWhen(true)] out ApiParameterDescription? bodyParameter)
Services\OpenApiDocumentService.cs (1)
55internal bool TryGetCachedOperationTransformerContext(string descriptionId, [NotNullWhen(true)] out OpenApiOperationTransformerContext? context)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
398private static bool IsTaskType(Type methodReturnType, [NotNullWhen(true)] out Type? resultType)
src\Shared\ParameterBindingMethodCache.cs (4)
532private static bool TryGetDateTimeTryParseMethod(Type type, [NotNullWhen(true)] out MethodInfo? methodInfo) 568private static bool TryGetNumberStylesTryGetMethod(Type type, [NotNullWhen(true)] out MethodInfo? method, [NotNullWhen(true)] out NumberStyles? numberStyles) 723public override bool Equals([NotNullWhen(true)] object? obj)
src\Shared\RoslynUtils\TypeHelper.cs (2)
45private static bool TryParseLocalFunctionName(string generatedName, [NotNullWhen(true)] out string? originalName) 63internal static bool TryGetNonCompilerGeneratedMethodName(MethodInfo method, [NotNullWhen(true)] out string? originalName)
Microsoft.AspNetCore.Rewrite (1)
ApacheModRewrite\Flags.cs (1)
34public bool GetValue(FlagType flag, [NotNullWhen(true)] out string? value)
Microsoft.AspNetCore.Routing (5)
DefaultLinkParser.cs (1)
119internal bool TryParse(RouteEndpoint endpoint, PathString path, [NotNullWhen(true)] out RouteValueDictionary? values)
ParameterPolicyActivator.cs (1)
74[NotNullWhen(true)] out Type? policyType)
src\Shared\Json\JsonSerializerExtensions.cs (1)
16public static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType)
src\Shared\RoslynUtils\TypeHelper.cs (2)
45private static bool TryParseLocalFunctionName(string generatedName, [NotNullWhen(true)] out string? originalName) 63internal static bool TryGetNonCompilerGeneratedMethodName(MethodInfo method, [NotNullWhen(true)] out string? originalName)
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\RequestStream.cs (1)
340internal bool TryCheckSizeLimit(int bytesRead, [NotNullWhen(true)] out Exception? exception)
UrlPrefixCollection.cs (2)
82internal bool TryMatchLongestPrefix(bool isHttps, string host, string originalPath, [NotNullWhen(true)] out string? pathBase, [NotNullWhen(true)] out string? remainingPath)
Microsoft.AspNetCore.Server.IIS (1)
Core\IISEnvironmentFeature.cs (1)
11public static bool TryCreate(IConfiguration configuration, [NotNullWhen(true)] out IIISEnvironmentFeature? result)
Microsoft.AspNetCore.Server.Kestrel.Core (13)
Internal\AddressBinder.cs (1)
74internal static bool TryCreateIPEndPoint(BindingAddress address, [NotNullWhen(true)] out IPEndPoint? endpoint)
Internal\Http\HttpProtocol.cs (1)
909protected bool VerifyResponseContentLength([NotNullWhen(false)] out Exception? ex)
Internal\Infrastructure\ConnectionReference.cs (1)
26public bool TryGetConnection([NotNullWhen(true)] out KestrelConnection? connection)
Internal\Infrastructure\KestrelMetrics.cs (3)
378public static bool TryGetHandshakeProtocol(SslProtocols protocols, [NotNullWhen(true)] out string? name, [NotNullWhen(true)] out string? version) 465internal static bool TryGetErrorType(ConnectionEndReason reason, [NotNullWhen(true)]out string? errorTypeValue)
src\Servers\Kestrel\shared\PooledStreamStack.cs (2)
45public bool TryPop([NotNullWhen(true)] out TValue? result) 62public bool TryPeek([NotNullWhen(true)] out TValue? result)
src\Shared\Buffers\BufferSegmentStack.cs (1)
23public bool TryPop([NotNullWhen(true)] out BufferSegment? result)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
784private static bool TryGetOpenSslDirectory([NotNullWhen(true)] out string? openSslDir) 826private static bool TryGetOpenSslHash(string certificatePath, [NotNullWhen(true)] out string? hash)
TlsConfigurationLoader.cs (1)
183private static bool TryGetCertificatePath(string applicationName, [NotNullWhen(true)] out string? path)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Servers\Kestrel\shared\PooledStreamStack.cs (2)
45public bool TryPop([NotNullWhen(true)] out TValue? result) 62public bool TryPeek([NotNullWhen(true)] out TValue? result)
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
132public bool TryGetValue(string key, [NotNullWhen(true)] out byte[]? value)
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
398private static bool IsTaskType(Type methodReturnType, [NotNullWhen(true)] out Type? resultType)
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (2)
2194public bool TryGetInvocation(string invocationId, [NotNullWhen(true)] out InvocationRequest? irq) 2202public bool TryRemoveInvocation(string invocationId, [NotNullWhen(true)] out InvocationRequest? irq)
src\SignalR\common\Shared\ReflectionHelper.cs (1)
28public static bool TryGetStreamType(Type streamType, [NotNullWhen(true)] out Type? streamGenericType, bool mustBeDirectType = false)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubProtocolVersionTests.cs (1)
221public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage message)
Microsoft.AspNetCore.SignalR.Common (3)
Protocol\HandshakeProtocol.cs (2)
116public static bool TryParseResponseMessage(ref ReadOnlySequence<byte> buffer, [NotNullWhen(true)] out HandshakeResponseMessage? responseMessage) 170public static bool TryParseRequestMessage(ref ReadOnlySequence<byte> buffer, [NotNullWhen(true)] out HandshakeRequestMessage? requestMessage)
Protocol\IHubProtocol.cs (1)
38bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message);
Microsoft.AspNetCore.SignalR.Core (7)
DefaultHubLifetimeManager.cs (1)
391public override bool TryGetReturnType(string invocationId, [NotNullWhen(true)] out Type? type)
HubLifetimeManager.cs (1)
169public virtual bool TryGetReturnType(string invocationId, [NotNullWhen(true)] out Type? type)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
398private static bool IsTaskType(Type methodReturnType, [NotNullWhen(true)] out Type? resultType)
src\SignalR\common\Shared\ClientResultsManager.cs (1)
81public bool TryGetType(string invocationId, [NotNullWhen(true)] out Type? type)
src\SignalR\common\Shared\ReflectionHelper.cs (1)
28public static bool TryGetStreamType(Type streamType, [NotNullWhen(true)] out Type? streamGenericType, bool mustBeDirectType = false)
StreamTracker.cs (2)
42private bool TryGetConverter(string streamId, [NotNullWhen(true)] out IStreamConverter? converter) 52public bool TryProcessItem(StreamItemMessage message, [NotNullWhen(true)] out Task? task)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
89public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
79public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (1)
444public override bool TryGetReturnType(string invocationId, [NotNullWhen(true)] out Type? type)
src\SignalR\common\Shared\ClientResultsManager.cs (1)
81public bool TryGetType(string invocationId, [NotNullWhen(true)] out Type? type)
Microsoft.AspNetCore.WebSockets (1)
HandshakeHelpers.cs (1)
76int serverMaxWindowBits, out WebSocketDeflateOptions parsedOptions, [NotNullWhen(true)] out string? response)
Microsoft.AspNetCore.WebUtilities (2)
FormReader.cs (2)
216private bool TryReadWord(char separator, int limit, [NotNullWhen(true)] out string? value) 228private bool ReadChar(char separator, int limit, [NotNullWhen(true)] out string? word)
Microsoft.CodeAnalysis (85)
Collections\CachingDictionary.cs (1)
204private static bool IsNotFullyPopulatedMap([NotNullWhen(returnValue: false)] IDictionary<TKey, ImmutableArray<TElement>>? existingMap)
Collections\CollectionsExtensions.cs (3)
13internal static bool IsNullOrEmpty<T>([NotNullWhen(returnValue: false)] this ICollection<T>? collection) 18internal static bool IsNullOrEmpty<T>([NotNullWhen(returnValue: false)] this IReadOnlyCollection<T>? collection) 23internal static bool IsNullOrEmpty<T>([NotNullWhen(returnValue: false)] this ImmutableHashSet<T>? hashSet)
Collections\HashSetExtensions.cs (3)
13internal static bool IsNullOrEmpty<T>([NotNullWhen(returnValue: false)] this HashSet<T>? hashSet) 18internal static bool InitializeAndAdd<T>([NotNullIfNotNull(parameterName: nameof(item)), NotNullWhen(returnValue: true)] ref HashSet<T>? hashSet, [NotNullWhen(returnValue: true)] T? item)
CommandLine\CommandLineParser.cs (3)
139internal static bool TryParseOption(string arg, [NotNullWhen(true)] out string? name, out string? value) 709[NotNullWhen(true)] out List<string>? parsedArgs, 713[NotNullWhen(false)] out string? errorMessage)
CommandLine\CommonCompiler.cs (1)
299[NotNullWhen(true)] out AnalyzerConfigSet? analyzerConfigSet)
Compilation\CommonModuleCompilationState.cs (1)
57internal bool TryGetStateMachineType(TMethodSymbol method, [NotNullWhen(true)] out TNamedTypeSymbol? stateMachineType)
Compilation\CompilationOptions.cs (1)
613protected bool EqualsHelper([NotNullWhen(true)] CompilationOptions? other)
Compilation\ParseOptions.cs (1)
134protected bool EqualsHelper([NotNullWhen(true)] ParseOptions? other)
DiagnosticAnalyzer\AnalyzerConfigOptions.cs (1)
22public abstract bool TryGetValue(string key, [NotNullWhen(true)] out string? value);
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
432[NotNullWhen(returnValue: true)] out SymbolDeclaredCompilationEvent? containingSymbolDeclaredEvent)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
935bool tryProcessTree(SyntaxTree partialTree, [NotNullWhen(true)] out (AnalysisScope scope, ImmutableArray<CompilationEvent> events)? scopeAndEvents)
DiagnosticAnalyzer\DiagnosticQueue.cs (6)
20public abstract bool TryDequeue([NotNullWhen(returnValue: true)] out Diagnostic? d); 88public override bool TryDequeue([NotNullWhen(returnValue: true)] out Diagnostic? d) 156public override bool TryDequeue([NotNullWhen(returnValue: true)] out Diagnostic? d) 164private bool TryDequeue_NoLock([NotNullWhen(returnValue: true)] out Diagnostic? d) 171private static bool TryDequeue_NoLock(Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? lazyDiagnosticsMap, [NotNullWhen(returnValue: true)] out Diagnostic? d) 219[NotNullWhen(returnValue: true)] out SimpleDiagnosticQueue? queue)
DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
24public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
129public bool IsDiagnosticSuppressed(Diagnostic diagnostic, [NotNullWhen(true)] out AttributeData? suppressingAttribute)
FileSystem\PathUtilities.cs (2)
354public static bool IsAbsolute([NotNullWhen(true)] string? path) 759public static bool IsValidFilePath([NotNullWhen(true)] string? fullPath)
InternalUtilities\FileNameUtilities.cs (1)
31internal static bool IsFileName([NotNullWhen(returnValue: true)] string? path)
InternalUtilities\RoslynString.cs (2)
12public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] string? value) 16public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue: false)] string? value)
InternalUtilities\StringExtensions.cs (6)
100internal static bool IsValidClrTypeName([NotNullWhen(returnValue: true)] this string? name) 108internal static bool IsValidClrNamespaceName([NotNullWhen(returnValue: true)] this string? name) 146[NotNullWhen(returnValue: true)] out string? result) 161[NotNullWhen(returnValue: true)] out string? result) 283[NotNullWhen(returnValue: true)] out byte[]? result, 284[NotNullWhen(returnValue: false)] out string? error)
InternalUtilities\UICultureUtilities.cs (2)
18private static bool TryGetCurrentUICultureSetter([NotNullWhen(returnValue: true)] out Action<CultureInfo>? setter) 56private static bool TryGetCurrentThreadUICultureSetter([NotNullWhen(returnValue: true)] out Action<CultureInfo>? setter)
InternalUtilities\UnicodeCharacterUtilities.cs (1)
91public static bool IsValidIdentifier([NotNullWhen(returnValue: true)] string? name)
MetadataReader\MetadataDecoder.cs (2)
1682internal bool GetCustomAttribute(CustomAttributeHandle handle, [NotNullWhen(true)] out TypeSymbol? attributeClass, [NotNullWhen(true)] out MethodSymbol? attributeCtor)
MetadataReader\PEModule.cs (1)
2178private static bool CrackDeprecatedAttributeData([NotNullWhen(true)] out ObsoleteAttributeData? value, ref BlobReader sig)
MetadataReference\AssemblyIdentity.cs (1)
242private static bool IsValidName([NotNullWhen(true)] string? name)
MetadataReference\AssemblyIdentity.DisplayName.cs (5)
155public static bool TryParseDisplayName(string displayName, [NotNullWhen(true)] out AssemblyIdentity? identity) 194public static bool TryParseDisplayName(string displayName, [NotNullWhen(true)] out AssemblyIdentity? identity, out AssemblyIdentityParts parts) 209static bool tryParseDisplayName(string displayName, [NotNullWhen(true)] out AssemblyIdentity? identity, out AssemblyIdentityParts parts) 447private static bool TryParseNameToken(string displayName, ref int position, [NotNullWhen(true)] out string? value) 805private static bool TryUnescape(string str, int start, int end, [NotNullWhen(true)] out string? value)
Operations\ControlFlowGraph.cs (2)
244internal bool TryGetLocalFunctionControlFlowGraph(IMethodSymbol localFunction, [NotNullWhen(true)] out ControlFlowGraph? controlFlowGraph) 293internal bool TryGetAnonymousFunctionControlFlowGraph(IFlowAnonymousFunctionOperation anonymousFunction, [NotNullWhen(true)] out ControlFlowGraph? controlFlowGraph)
Operations\ControlFlowGraphBuilder.cs (1)
4204bool isNotNullableValueType([NotNullWhen(true)] ITypeSymbol? type)
PEWriter\Miscellaneous.cs (2)
24public static bool EnumerableIsNotEmpty<T>([NotNullWhen(returnValue: true)] IEnumerable<T>? enumerable) 49public static bool EnumerableIsEmpty<T>([NotNullWhen(returnValue: false)] IEnumerable<T>? enumerable)
ReferenceManager\CommonReferenceManager.Binding.cs (3)
530[NotNullWhen(true)] out AssemblyIdentity? resolvedAssemblyIdentity, 531[NotNullWhen(true)] out AssemblyMetadata? resolvedAssemblyMetadata, 532[NotNullWhen(true)] out PortableExecutableReference? resolvedReference)
SourceFileResolver.cs (1)
119protected virtual bool FileExists([NotNullWhen(true)] string? resolvedPath)
SourceGeneration\GeneratedCodeUtilities.cs (1)
61private static bool IsGeneratedCodeFile([NotNullWhen(returnValue: true)] string? filePath)
SourceGeneration\Nodes\StateTableStore.cs (2)
21public bool TryGetValue(object key, [NotNullWhen(true)] out IStateTable? table) => _tables.TryGetValue(key, out table); 43public bool TryGetTable(object key, [NotNullWhen(true)] out IStateTable? table) => _tableBuilder.TryGetValue(key, out table);
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
84public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
Symbols\ISymbol.cs (1)
313bool Equals([NotNullWhen(returnValue: true)] ISymbol? other, SymbolEqualityComparer equalityComparer);
Symbols\ITypeSymbol.cs (8)
203internal static bool IsNullableType([NotNullWhen(returnValue: true)] ITypeSymbol? typeOpt) 208internal static bool IsNullableOfBoolean([NotNullWhen(returnValue: true)] ITypeSymbol? type) 219internal static bool IsBooleanType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 224internal static bool IsObjectType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 229internal static bool IsSignedIntegralType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 234internal static bool IsUnsignedIntegralType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 239internal static bool IsNumericType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 255internal static bool IsDynamicType([NotNullWhen(returnValue: true)] ITypeSymbol? type)
Syntax\GreenNode.cs (2)
498public bool HasAnnotation([NotNullWhen(true)] SyntaxAnnotation? annotation) 825public virtual bool IsEquivalentTo([NotNullWhen(true)] GreenNode? other)
Syntax\SyntaxNode.cs (3)
336public bool IsEquivalentTo([NotNullWhen(true)] SyntaxNode? other) 365public bool IsIncrementallyIdenticalTo([NotNullWhen(true)] SyntaxNode? other) 1225public bool HasAnnotation([NotNullWhen(true)] SyntaxAnnotation? annotation)
Syntax\SyntaxNodeOrToken.cs (2)
197internal bool AsNode([NotNullWhen(true)] out SyntaxNode? node) 562public bool HasAnnotation([NotNullWhen(true)] SyntaxAnnotation? annotation)
Syntax\SyntaxToken.cs (1)
260public bool HasAnnotation([NotNullWhen(true)] SyntaxAnnotation? annotation)
Syntax\SyntaxTree.cs (3)
94public abstract bool TryGetText([NotNullWhen(true)] out SourceText? text); 128public bool TryGetRoot([NotNullWhen(true)] out SyntaxNode? root) 136protected abstract bool TryGetRootCore([NotNullWhen(true)] out SyntaxNode? root);
Syntax\SyntaxTrivia.cs (2)
169public bool HasAnnotation([NotNullWhen(true)] SyntaxAnnotation? annotation) 212internal bool TryGetStructure([NotNullWhen(true)] out SyntaxNode? structure)
Text\SourceText.cs (1)
946internal bool TryGetLines([NotNullWhen(returnValue: true)] out TextLineCollection? lines)
XmlFileResolver.cs (1)
85protected virtual bool FileExists([NotNullWhen(true)] string? resolvedPath)
Microsoft.CodeAnalysis.CSharp (138)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
211[NotNullWhen(true)] out SyntaxNode? memberAccessNode, 212[NotNullWhen(true)] out string? memberName,
Binder\Binder.ValueChecks.cs (2)
2359static bool isMixableParameter([NotNullWhen(true)] ParameterSymbol? parameter) => 2739private bool ShouldInferDeclarationExpressionValEscape(BoundExpression argument, [NotNullWhen(true)] out SourceLocalSymbol? localSymbol)
Binder\Binder_Await.cs (3)
323private bool GetGetAwaiterMethod(BoundExpression expression, SyntaxNode node, BindingDiagnosticBag diagnostics, [NotNullWhen(true)] out BoundExpression? getAwaiterCall) 368private bool GetIsCompletedProperty(TypeSymbol awaiterType, SyntaxNode node, TypeSymbol awaitedExpressionType, BindingDiagnosticBag diagnostics, [NotNullWhen(true)] out PropertySymbol? isCompletedProperty) 435private bool GetGetResultMethod(BoundExpression awaiterExpression, SyntaxNode node, TypeSymbol awaitedExpressionType, BindingDiagnosticBag diagnostics, out MethodSymbol? getResultMethod, [NotNullWhen(true)] out BoundExpression? getAwaiterGetResultCall)
Binder\Binder_Conversions.cs (3)
1216[NotNullWhen(returnValue: true)] out NamedTypeSymbol? inProgress, 2773internal static bool IsMemberAccessedThroughType([NotNullWhen(true)] BoundExpression? receiverOpt) 2791internal static bool WasImplicitReceiver([NotNullWhen(false)] BoundExpression? receiverOpt)
Binder\Binder_Expressions.cs (6)
9920[NotNullWhen(true)] out BoundImplicitIndexerAccess? implicitIndexerAccess) 10004[NotNullWhen(true)] out BoundExpression? lengthOrCountAccess, 10005[NotNullWhen(true)] out BoundExpression? indexerOrSliceAccess, 10037[NotNullWhen(true)] out BoundExpression? indexerOrSliceAccess, 10200[NotNullWhen(true)] out PropertySymbol? lengthOrCountProperty, 10212bool tryLookupLengthOrCount(SyntaxNode syntax, string propertyName, [NotNullWhen(true)] out PropertySymbol? valid, BindingDiagnosticBag diagnostics)
Binder\Binder_InterpolatedString.cs (2)
275bool tryBindAsHandlerType([NotNullWhen(true)] out BoundInterpolatedString? result) 438private bool TryBindUnconvertedBinaryOperatorToDefaultInterpolatedStringHandler(BoundBinaryOperator binaryOperator, BindingDiagnosticBag diagnostics, [NotNullWhen(true)] out BoundBinaryOperator? convertedBinaryOperator)
Binder\Binder_Patterns.cs (6)
1199[NotNullWhen(true)] out NamedTypeSymbol? iTupleType, 1200[NotNullWhen(true)] out MethodSymbol? iTupleGetLength, 1201[NotNullWhen(true)] out MethodSymbol? iTupleGetItem) 1237[NotNullWhen(true)] out NamedTypeSymbol? iTupleType, 1238[NotNullWhen(true)] out MethodSymbol? iTupleGetLength, 1239[NotNullWhen(true)] out MethodSymbol? iTupleGetItem)
Binder\Binder_Statements.cs (1)
1790private static bool HasSynthesizedBackingField(PropertySymbol propertySymbol, [NotNullWhen(true)] out SourcePropertySymbolBase? sourcePropertyDefinition)
Binder\DecisionDagBuilder.cs (1)
605bool tryMakeTestsForSubpatternMember([NotNullWhen(true)] BoundPropertySubpatternMember? member, ref BoundDagTemp input, bool isLengthOrCount)
Binder\LocalBinderFactory.cs (1)
275static bool receiverIsInvocation(InvocationExpressionSyntax node, [NotNullWhen(true)] out InvocationExpressionSyntax? nested)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1706internal static bool IsSpanOrListType(CSharpCompilation compilation, TypeSymbol targetType, WellKnownType spanType, [NotNullWhen(true)] out TypeWithAnnotations elementType)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
2973static bool containsFunctionTypes([NotNullWhen(true)] HashSet<TypeWithAnnotations>? types) 2978static bool containsNonFunctionTypes([NotNullWhen(true)] HashSet<TypeWithAnnotations>? types) 2983static bool isFunctionType(TypeWithAnnotations type, [NotNullWhen(true)] out FunctionTypeSymbol? functionType)
Binder\SwitchExpressionBinder.cs (1)
59[NotNullWhen(true)] out LabelSymbol? defaultLabel,
BoundTree\BoundDagEvaluation.cs (1)
13public sealed override bool Equals([NotNullWhen(true)] object? obj) => obj is BoundDagEvaluation other && this.Equals(other);
BoundTree\BoundDagTest.cs (1)
16public override bool Equals([NotNullWhen(true)] object? obj) => this.Equals(obj as BoundDagTest);
BoundTree\BoundExpressionExtensions.cs (1)
253internal static bool IsExpressionOfComImportType([NotNullWhen(true)] this BoundExpression? expressionOpt)
BoundTree\BoundNodeExtensions.cs (1)
34public static bool HasErrors([NotNullWhen(true)] this BoundNode? node)
CodeGen\EmitArrayInitializer.cs (1)
777bool tryGetReadOnlySpanArrayCtor(SyntaxNode syntax, [NotNullWhen(true)] out MethodSymbol? rosArrayCtor)
Compiler\DocumentationCommentCompiler.cs (1)
420[NotNullWhen(true)] out string? withUnprocessedIncludes,
CSharpExtensions.cs (25)
47public static bool IsKind([NotNullWhen(true)] this SyntaxNode? node, SyntaxKind kind) 400internal static bool HasReferenceDirectives([NotNullWhen(true)] this SyntaxTree? tree) 406internal static bool HasReferenceOrLoadDirectives([NotNullWhen(true)] this SyntaxTree? tree) 412internal static bool IsAnyPreprocessorSymbolDefined([NotNullWhen(true)] this SyntaxTree? tree, ImmutableArray<string> conditionalSymbols) 418internal static bool IsPreprocessorSymbolDefined([NotNullWhen(true)] this SyntaxTree? tree, string symbolName, int position) 1112public static bool TryGetSpeculativeSemanticModelForMethodBody([NotNullWhen(true)] this SemanticModel? semanticModel, int position, BaseMethodDeclarationSyntax method, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1131public static bool TryGetSpeculativeSemanticModelForMethodBody([NotNullWhen(true)] this SemanticModel? semanticModel, int position, AccessorDeclarationSyntax accessor, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1150public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, TypeSyntax type, [NotNullWhen(true)] out SemanticModel? speculativeModel, SpeculativeBindingOption bindingOption = SpeculativeBindingOption.BindAsExpression) 1169public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, CrefSyntax crefSyntax, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1188public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, StatementSyntax statement, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1207public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, EqualsValueClauseSyntax initializer, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1226public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, ArrowExpressionClauseSyntax expressionBody, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1247public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, ConstructorInitializerSyntax constructorInitializer, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1268public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, PrimaryConstructorBaseTypeSyntax constructorInitializer, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1287public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, AttributeSyntax attribute, [NotNullWhen(true)] out SemanticModel? speculativeModel)
FlowAnalysis\AbstractFlowPass.cs (2)
2976private bool TryVisitConditionalAccess(BoundExpression node, [NotNullWhen(true)] out TLocalState? stateWhenNotNull) 3027private bool VisitPossibleConditionalAccess(BoundExpression node, [NotNullWhen(true)] out TLocalState? stateWhenNotNull)
FlowAnalysis\LocalDataFlowPass.cs (1)
204protected abstract bool TryGetReceiverAndMember(BoundExpression expr, out BoundExpression? receiver, [NotNullWhen(true)] out Symbol? member);
FlowAnalysis\NullableWalker.cs (7)
2000protected override bool TryGetReceiverAndMember(BoundExpression expr, out BoundExpression? receiver, [NotNullWhen(true)] out Symbol? member) 5458private static bool PossiblyNullableType([NotNullWhen(true)] TypeSymbol? operandType) => operandType?.CanContainNull() == true; 8183private bool UseExpressionForConversion([NotNullWhen(true)] BoundExpression? value) 8307bool tryAsMemberOfSingleType(NamedTypeSymbol singleType, [NotNullWhen(true)] out Symbol? result) 8445private static bool AreNullableAndUnderlyingTypes([NotNullWhen(true)] TypeSymbol? nullableTypeOpt, [NotNullWhen(true)] TypeSymbol? underlyingTypeOpt, out TypeWithAnnotations underlyingTypeWithAnnotations) 9848private bool TryGetMethodGroupReceiverNullability([NotNullWhen(true)] BoundExpression? receiverOpt, out TypeWithState type)
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
82internal bool TryGetUpdatedSymbol(BoundNode node, Symbol symbol, [NotNullWhen(true)] out Symbol? updatedSymbol)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
46[NotNullWhen(true)] out CodeCoverageInstrumenter? instrumenter)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (4)
158[NotNullWhen(true)] out LocalStateTracingInstrumenter? instrumenter) 409private bool TryGetLocalOrParameterInfo(BoundNode node, [NotNullWhen(true)] out Symbol? symbol, [NotNullWhen(true)] out TypeSymbol? type, [NotNullWhen(true)] out BoundExpression? indexExpression)
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
44[NotNullWhen(true)] out ModuleCancellationInstrumenter? instrumenter)
Lowering\Instrumentation\StackOverflowProbingInstrumenter.cs (1)
34[NotNullWhen(true)] out StackOverflowProbingInstrumenter? instrumenter)
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
124private static bool TryGetOwnerFunction(MethodSymbol currentFunction, BoundDelegateCreationExpression boundDelegateCreation, [NotNullWhen(true)] out MethodSymbol? ownerFunction)
Lowering\LocalRewriter\LocalRewriter.cs (1)
596private bool TryGetWellKnownTypeMember<TSymbol>(SyntaxNode? syntax, WellKnownMember member, [NotNullWhen(true)] out TSymbol? symbol, bool isOptional = false, Location? location = null) where TSymbol : Symbol
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
461[NotNullWhen(true)] out BoundExpression sideEffect, 462[NotNullWhen(true)] out BoundExpression testExpression)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
1104[NotNullWhen(returnValue: true)] ConstantValue? constantValue)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1130private bool TryOptimizeParamsArray(BoundExpression possibleParamsArray, [NotNullWhen(true)] out BoundExpression? optimized)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
160private bool TryRewriteSingleElementSpreadToList(BoundCollectionExpression node, TypeWithAnnotations listElementType, [NotNullWhen(true)] out BoundExpression? result) 217private static bool CanOptimizeSingleSpreadAsCollectionBuilderArgument(BoundCollectionExpression node, [NotNullWhen(true)] out BoundExpression? spreadExpression) 699bool tryGetToArrayMethod(TypeSymbol spreadTypeOriginalDefinition, WellKnownType wellKnownType, WellKnownMember wellKnownMember, [NotNullWhen(true)] out MethodSymbol? toArrayMethod) 901private bool TryConvertToSpan(BoundExpression expression, bool writableOnly, [NotNullWhen(true)] out BoundExpression? span)
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
70private bool CanRewriteForEachAsFor(SyntaxNode forEachSyntax, TypeSymbol nodeExpressionType, [NotNullWhen(true)] out MethodSymbol? indexerGet, [NotNullWhen(true)] out MethodSymbol? lengthGet)
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (2)
418private bool TryRewriteStringConcatenationWithSpanBasedConcat(SyntaxNode syntax, ArrayBuilder<BoundExpression> args, [NotNullWhen(true)] out BoundExpression? result) 499[NotNullWhen(true)] out MethodSymbol? readOnlySpanCtorRefParamChar,
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
47private static bool HasSideEffects([NotNullWhen(true)] BoundStatement? statement)
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
42private bool IsLikeTupleExpression(BoundExpression expr, [NotNullWhen(true)] out BoundTupleExpression? tuple)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
606static bool hasNonIdentityConversion([NotNullWhen(true)] BoundExpression? expression)
Lowering\MethodToClassRewriter.cs (5)
91protected bool TryRewriteLocal(LocalSymbol local, [NotNullWhen(true)] out LocalSymbol? newLocal) 372private bool TryReplaceWithProxy(Symbol parameterOrLocal, SyntaxNode syntax, [NotNullWhen(true)] out BoundNode? replacement) 427private bool TryGetHoistedField(Symbol variable, [NotNullWhen(true)] out FieldSymbol? field) 725private static bool BaseReferenceInReceiverWasRewritten([NotNullWhen(true)] BoundExpression? originalReceiver, [NotNullWhen(true)] BoundExpression? rewrittenReceiver)
Parser\CharacterInfo.cs (1)
186public static bool IsValidIdentifier([NotNullWhen(true)] string? name)
Parser\LanguageParser.cs (1)
1850bool tryScanRecordStart([NotNullWhen(true)] out SyntaxToken? keyword, out SyntaxToken? recordModifier)
Parser\LanguageParser_InterpolatedString.cs (2)
296[NotNullWhen(true)] out string? currentLineMessage, 297[NotNullWhen(true)] out string? indentationLineMessage)
Parser\LanguageParser_Patterns.cs (3)
33private bool ConvertExpressionToType(ExpressionSyntax expression, [NotNullWhen(true)] out NameSyntax? type) 358bool parsePropertyPatternClause([NotNullWhen(true)] out PropertyPatternClauseSyntax? propertyPatternClauseResult) 454private bool ConvertTypeToExpression(TypeSyntax type, [NotNullWhen(true)] out ExpressionSyntax? expr, bool permitTypeArguments = false)
Parser\Lexer_RawStringLiteral.cs (2)
393[NotNullWhen(true)] out string? currentLineMessage, 394[NotNullWhen(true)] out string? indentationLineMessage)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
442private bool IncludeNamedType([NotNullWhen(true)] INamedTypeSymbol? namedType)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
194private static bool IsInitOnly([NotNullWhen(true)] IMethodSymbol? symbol)
Symbols\AssemblySymbol.cs (1)
1014bool isValidCandidate([NotNullWhen(true)] NamedTypeSymbol? candidate, bool isWellKnownType)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1421internal static bool HasAsyncMethodBuilderAttribute(Symbol symbol, [NotNullWhen(true)] out TypeSymbol? builderArgument)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1235internal static bool IsValidCollectionBuilderType([NotNullWhen(true)] TypeSymbol? builderType)
Symbols\SymbolExtensions.cs (1)
39public static bool IsNestedType([NotNullWhen(true)] this Symbol? symbol)
Symbols\Synthesized\GeneratedNameParser.cs (7)
89internal static bool TryParseSourceMethodNameFromGeneratedName(string generatedName, GeneratedNameKind requiredKind, [NotNullWhen(true)] out string? methodName) 116internal static bool TryParseLocalFunctionName(string generatedName, [NotNullWhen(true)] out string? localFunctionName) 164internal static bool TryParseAnonymousTypeParameterName(string typeParameterName, [NotNullWhen(true)] out string? propertyName) 177internal static bool TryParsePrimaryConstructorParameterFieldName(string fieldName, [NotNullWhen(true)] out string? parameterName) 215internal static bool TryParseFileTypeName(string generatedName, [NotNullWhen(true)] out string? displayFileName, [NotNullWhen(true)] out byte[]? checksum, [NotNullWhen(true)] out string? originalTypeName)
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
138internal override bool GetGuidString([NotNullWhen(true)] out string? guidString)
Symbols\TypeSymbolExtensions.cs (3)
157public static bool IsNullableType(this TypeSymbol? type, [NotNullWhen(true)] out TypeSymbol? underlyingType) 1647public static bool TryAsDynamicIfNoPia(this TypeSymbol type, NamedTypeSymbol containingType, [NotNullWhen(true)] out TypeSymbol? result) 1889internal static bool IsCustomTaskType(this NamedTypeSymbol type, [NotNullWhen(true)] out TypeSymbol? builderArgument)
Syntax\CSharpSyntaxTree.cs (2)
92public abstract bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root); 883protected override bool TryGetRootCore([NotNullWhen(true)] out SyntaxNode? root)
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (2)
49public override bool TryGetText([NotNullWhen(true)] out SourceText? text) 79public override bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root)
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
72public override bool TryGetText([NotNullWhen(true)] out SourceText? text)
Syntax\LambdaUtilities.cs (1)
283public static bool TryGetLambdaBodies(SyntaxNode node, [NotNullWhen(true)] out SyntaxNode? lambdaBody1, out SyntaxNode? lambdaBody2)
Syntax\SyntaxFacts.cs (2)
453internal static bool IsDeclarationExpressionType(SyntaxNode node, [NotNullWhen(true)] out DeclarationExpressionSyntax? parent) 533internal static bool IsTopLevelStatement([NotNullWhen(true)] GlobalStatementSyntax? syntax)
Syntax\SyntaxNormalizer.cs (1)
313private static bool IsAccessorListFollowedByInitializer([NotNullWhen(true)] SyntaxNode? node)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
52public override bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestAnalyzerConfigOptions.cs (1)
19public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value)
Microsoft.CodeAnalysis.LanguageServer (1)
CustomExportAssemblyLoader.cs (1)
122private bool TryLoadAssemblyFromCodeBasePath(AssemblyName assemblyName, string codeBasePath, [NotNullWhen(true)] out Assembly? assembly)
Microsoft.CodeAnalysis.Rebuild (3)
CompilationOptionsReader.cs (1)
73internal bool TryGetMetadataCompilationOptions([NotNullWhen(true)] out MetadataCompilationOptions? options)
MetadataCompilationOptions.cs (2)
24public bool TryGetUniqueOption(ILogger logger, string optionName, [NotNullWhen(true)] out string? value) 35public bool TryGetUniqueOption(string optionName, [NotNullWhen(true)] out string? value)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1990private static bool IsTopLevelMainMethod([NotNullWhen(true)] this ISymbol? symbol)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Recommendations\VisualBasicRecommendationServiceRunner.vb (1)
69Public Overrides Function TryGetExplicitTypeOfLambdaParameter(lambdaSyntax As SyntaxNode, ordinalInLambda As Integer, <NotNullWhen(True)> ByRef explicitLambdaParameterType As ITypeSymbol) As Boolean
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (1)
1771Public Function IsBaseNamespaceDeclaration(<NotNullWhen(True)> node As SyntaxNode) As Boolean Implements ISyntaxFacts.IsBaseNamespaceDeclaration
Microsoft.CodeAnalysis.Workspaces.MSBuild (10)
MSBuild\MSBuildProjectLoader.SolutionFilterReader.cs (1)
23public static bool TryRead(string filterFilename, PathResolver pathResolver, [NotNullWhen(true)] out string? solutionFilename, out ImmutableHashSet<string> projectFilter)
MSBuild\PathResolver.cs (2)
21public bool TryGetAbsoluteSolutionPath(string path, string baseDirectory, DiagnosticReportingMode reportingMode, [NotNullWhen(true)] out string? absolutePath) 46public bool TryGetAbsoluteProjectPath(string path, string baseDirectory, DiagnosticReportingMode reportingMode, [NotNullWhen(true)] out string? absolutePath)
MSBuild\ProjectFileExtensionRegistry.cs (1)
45public bool TryGetLanguageNameFromProjectPath(string? projectFilePath, DiagnosticReportingMode mode, [NotNullWhen(true)] out string? languageName)
MSBuild\ProjectMap.cs (6)
160private bool TryFindOutputFileRefPathInProjectIdSet(string? outputRefFilePath, HashSet<ProjectId> set, [NotNullWhen(true)] out ProjectId? result) 163private bool TryFindOutputFilePathInProjectIdSet(string? outputFilePath, HashSet<ProjectId> set, [NotNullWhen(true)] out ProjectId? result) 166private static bool TryFindPathInProjectIdSet(string? path, Func<ProjectId, string?> getPathById, HashSet<ProjectId> set, [NotNullWhen(true)] out ProjectId? result) 196internal bool TryGetIdsByProjectPath(string projectPath, [NotNullWhen(true)] out HashSet<ProjectId>? ids) 199internal bool TryGetOutputFilePathById(ProjectId id, [NotNullWhen(true)] out string? outputFilePath) 202internal bool TryGetOutputRefFilePathById(ProjectId id, [NotNullWhen(true)] out string? outputRefFilePath)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (15)
src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (2)
354public static bool IsAbsolute([NotNullWhen(true)] string? path) 759public static bool IsValidFilePath([NotNullWhen(true)] string? fullPath)
src\Compilers\Core\Portable\InternalUtilities\FileNameUtilities.cs (1)
31internal static bool IsFileName([NotNullWhen(returnValue: true)] string? path)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
12public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] string? value) 16public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue: false)] string? value)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (6)
100internal static bool IsValidClrTypeName([NotNullWhen(returnValue: true)] this string? name) 108internal static bool IsValidClrNamespaceName([NotNullWhen(returnValue: true)] this string? name) 146[NotNullWhen(returnValue: true)] out string? result) 161[NotNullWhen(returnValue: true)] out string? result) 283[NotNullWhen(returnValue: true)] out byte[]? result, 284[NotNullWhen(returnValue: false)] out string? error)
src\Compilers\Core\Portable\InternalUtilities\UICultureUtilities.cs (2)
18private static bool TryGetCurrentUICultureSetter([NotNullWhen(returnValue: true)] out Action<CultureInfo>? setter) 56private static bool TryGetCurrentThreadUICultureSetter([NotNullWhen(returnValue: true)] out Action<CultureInfo>? setter)
src\Compilers\Core\Portable\InternalUtilities\UnicodeCharacterUtilities.cs (1)
91public static bool IsValidIdentifier([NotNullWhen(returnValue: true)] string? name)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
84public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
Microsoft.Extensions.Caching.Abstractions (1)
Hybrid\IHybridCacheSerializerFactory.cs (1)
19bool TryCreateSerializer<T>([NotNullWhen(true)] out IHybridCacheSerializer<T>? serializer);
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
676internal bool TryGetValue(object key, [NotNullWhen(true)] out CacheEntry? entry) 679internal bool TryRemove(object key, [NotNullWhen(true)] out CacheEntry? entry)
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
343public bool TryGetValue(string key, [NotNullWhen(true)] out object? value)
Microsoft.Extensions.Configuration.Abstractions (1)
ConfigurationExtensions.cs (1)
79public static bool Exists([NotNullWhen(true)] this IConfigurationSection? section)
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ServiceCacheKey.cs (1)
47public override bool Equals([NotNullWhen(true)] object? obj) =>
ServiceLookup\ServiceIdentifier.cs (1)
44public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.Extensions.DependencyInjection.Abstractions (4)
ActivatorUtilities.cs (4)
604[NotNullWhen(true)] out ConstructorInfo? matchingConstructor, 605[NotNullWhen(true)] out int?[]? parameterMap) 638[NotNullWhen(true)] out ConstructorInfo? matchingConstructor, 639[NotNullWhen(true)] out int?[]? parameterMap)
Microsoft.Extensions.DependencyModel (5)
Dependency.cs (1)
34public override bool Equals([NotNullWhen(true)] object? obj) => obj is Dependency dependency && Equals(dependency);
DirectoryWrapper.cs (1)
11public bool Exists([NotNullWhen(true)] string? path)
FileWrapper.cs (1)
12public bool Exists([NotNullWhen(true)] string? path)
IDirectory.cs (1)
10bool Exists([NotNullWhen(true)] string? path);
IFile.cs (1)
11bool Exists([NotNullWhen(true)] string? path);
Microsoft.Extensions.FileSystemGlobbing (2)
FilePatternMatch.cs (1)
62public override bool Equals([NotNullWhen(true)] object? obj) =>
Internal\PathSegments\LiteralPathSegment.cs (1)
31public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.Extensions.Http (1)
DefaultHttpClientFactory.cs (1)
379private static bool TryGetLogger(Lazy<ILogger> loggerLazy, [NotNullWhen(true)] out ILogger? logger)
Microsoft.Extensions.Http.Resilience (3)
Routing\Internal\OrderedGroups\OrderedGroupsRoutingStrategy.cs (1)
32public override bool TryGetNextRoute([NotNullWhen(true)] out Uri? nextRoute)
Routing\Internal\RequestRoutingStrategy.cs (1)
29public abstract bool TryGetNextRoute([NotNullWhen(true)] out Uri? nextRoute);
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategy.cs (1)
48public override bool TryGetNextRoute([NotNullWhen(true)] out Uri? nextRoute)
Microsoft.Extensions.Http.Resilience.Tests (1)
Routing\MockRoutingStrategy.cs (1)
31public override bool TryGetNextRoute([NotNullWhen(true)] out Uri? nextRoute)
Microsoft.Extensions.Logging.Abstractions (2)
EventId.cs (1)
83public override bool Equals([NotNullWhen(true)] object? obj)
LogValuesFormatter.cs (1)
253private static bool TryFormatArgumentIfNullOrEnumerable<T>(T? value, [NotNullWhen(true)] out object? stringValue)
Microsoft.Extensions.Primitives (1)
StringSegment.cs (1)
197public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.Extensions.ServiceDiscovery (4)
Configuration\ConfigurationServiceEndpointProvider.cs (1)
202private static bool TryParseEndPoint(string value, [NotNullWhen(true)] out EndPoint? endPoint)
Configuration\ConfigurationServiceEndpointProviderFactory.cs (1)
21public bool TryCreateProvider(ServiceEndpointQuery query, [NotNullWhen(true)] out IServiceEndpointProvider? provider)
PassThrough\PassThroughServiceEndpointProviderFactory.cs (2)
16public bool TryCreateProvider(ServiceEndpointQuery query, [NotNullWhen(true)] out IServiceEndpointProvider? provider) 29private static bool TryCreateEndPoint(string serviceName, [NotNullWhen(true)] out EndPoint? endPoint)
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
IServiceEndpointProviderFactory.cs (1)
19bool TryCreateProvider(ServiceEndpointQuery query, [NotNullWhen(true)] out IServiceEndpointProvider? provider);
ServiceEndpointQuery.cs (1)
36public static bool TryParse(string input, [NotNullWhen(true)] out ServiceEndpointQuery? query)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
DnsServiceEndpointProviderFactory.cs (1)
16public bool TryCreateProvider(ServiceEndpointQuery query, [NotNullWhen(true)] out IServiceEndpointProvider? provider)
DnsSrvServiceEndpointProviderFactory.cs (1)
23public bool TryCreateProvider(ServiceEndpointQuery query, [NotNullWhen(true)] out IServiceEndpointProvider? provider)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
69public bool TryCreateProvider(ServiceEndpointQuery query, [NotNullWhen(true)] out IServiceEndpointProvider? resolver)
Microsoft.Net.Http.Headers (34)
CacheControlHeaderValue.cs (1)
506public static bool TryParse(StringSegment input, [NotNullWhen(true)] out CacheControlHeaderValue? parsedValue)
ContentDispositionHeaderValue.cs (3)
268public static bool TryParse(StringSegment input, [NotNullWhen(true)] out ContentDispositionHeaderValue? parsedValue) 574private static bool TryDecodeMime(StringSegment input, [NotNullWhen(true)] out string? output) 703private static bool TryDecode5987(StringSegment input, [NotNullWhen(true)] out string? output)
ContentRangeHeaderValue.cs (2)
221public static bool TryParse(StringSegment input, [NotNullWhen(true)] out ContentRangeHeaderValue? parsedValue) 389[NotNullWhen(true)] out ContentRangeHeaderValue? parsedValue)
CookieHeaderValue.cs (3)
117public static bool TryParse(StringSegment input, [NotNullWhen(true)] out CookieHeaderValue? parsedValue) 149public static bool TryParseList(IList<string>? inputs, [NotNullWhen(true)] out IList<CookieHeaderValue>? parsedValues) 160public static bool TryParseStrictList(IList<string>? inputs, [NotNullWhen(true)] out IList<CookieHeaderValue>? parsedValues)
EntityTagHeaderValue.cs (3)
162public static bool TryParse(StringSegment input, [NotNullWhen(true)] out EntityTagHeaderValue? parsedValue) 194public static bool TryParseList(IList<string>? inputs, [NotNullWhen(true)] out IList<EntityTagHeaderValue>? parsedValues) 205public static bool TryParseStrictList(IList<string>? inputs, [NotNullWhen(true)] out IList<EntityTagHeaderValue>? parsedValues)
HeaderUtilities.cs (1)
232public static bool TryParseSeconds(StringValues headerValues, string targetValue, [NotNullWhen(true)] out TimeSpan? value)
HttpHeaderParser.cs (3)
47public virtual bool TryParseValues(IList<string>? values, [NotNullWhen(true)] out IList<T>? parsedValues) 52public virtual bool TryParseStrictValues(IList<string>? values, [NotNullWhen(true)] out IList<T>? parsedValues) 57protected virtual bool TryParseValues(IList<string>? values, bool strict, [NotNullWhen(true)] out IList<T>? parsedValues)
MediaTypeHeaderValue.cs (3)
511public static bool TryParse(StringSegment input, [NotNullWhen(true)] out MediaTypeHeaderValue? parsedValue) 544public static bool TryParseList(IList<string>? inputs, [NotNullWhen(true)] out IList<MediaTypeHeaderValue>? parsedValues) 555public static bool TryParseStrictList(IList<string>? inputs, [NotNullWhen(true)] out IList<MediaTypeHeaderValue>? parsedValues)
NameValueHeaderValue.cs (3)
220public static bool TryParse(StringSegment input, [NotNullWhen(true)] out NameValueHeaderValue? parsedValue) 252public static bool TryParseList(IList<string>? input, [NotNullWhen(true)] out IList<NameValueHeaderValue>? parsedValues) 263public static bool TryParseStrictList(IList<string>? input, [NotNullWhen(true)] out IList<NameValueHeaderValue>? parsedValues)
RangeConditionHeaderValue.cs (1)
127public static bool TryParse(StringSegment input, [NotNullWhen(true)] out RangeConditionHeaderValue? parsedValue)
RangeHeaderValue.cs (1)
146public static bool TryParse(StringSegment input, [NotNullWhen(true)] out RangeHeaderValue? parsedValue)
SetCookieHeaderValue.cs (3)
424public static bool TryParse(StringSegment input, [NotNullWhen(true)] out SetCookieHeaderValue? parsedValue) 456public static bool TryParseList(IList<string>? inputs, [NotNullWhen(true)] out IList<SetCookieHeaderValue>? parsedValues) 467public static bool TryParseStrictList(IList<string>? inputs, [NotNullWhen(true)] out IList<SetCookieHeaderValue>? parsedValues)
src\Http\Shared\CookieHeaderParserShared.cs (4)
59public static bool TryParseValue(StringSegment value, ref int index, bool supportsMultipleValues, [NotNullWhen(true)] out StringSegment? parsedName, [NotNullWhen(true)] out StringSegment? parsedValue) 140internal static bool TryGetCookieLength(StringSegment input, ref int offset, [NotNullWhen(true)] out StringSegment? parsedName, [NotNullWhen(true)] out StringSegment? parsedValue)
StringWithQualityHeaderValue.cs (3)
137public static bool TryParse(StringSegment input, [NotNullWhen(true)] out StringWithQualityHeaderValue? parsedValue) 169public static bool TryParseList(IList<string>? input, [NotNullWhen(true)] out IList<StringWithQualityHeaderValue>? parsedValues) 180public static bool TryParseStrictList(IList<string>? input, [NotNullWhen(true)] out IList<StringWithQualityHeaderValue>? parsedValues)
PresentationCore (20)
System\Windows\BinaryFormat\Count.cs (1)
28public override bool Equals([NotNullWhen(true)] object? obj)
System\Windows\BinaryFormat\Id.cs (1)
21public override bool Equals([NotNullWhen(true)] object? obj)
System\Windows\Nrbf\SerializationRecordExtensions.cs (18)
14private delegate bool TryGetDelegate(SerializationRecord record, [NotNullWhen(true)] out object? value); 16private static bool TryGet(TryGetDelegate get, SerializationRecord record, [NotNullWhen(true)] out object? value) 34public static bool TryGetPointF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 38static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 59public static bool TryGetRectangleF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 63static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 91public static bool TryGetPrimitiveType(this SerializationRecord record, [NotNullWhen(true)] out object? value) 95static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 116public static bool TryGetPrimitiveList(this SerializationRecord record, [NotNullWhen(true)] out object? list) 120static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? list) 166public static bool TryGetPrimitiveArrayList(this SerializationRecord record, [NotNullWhen(true)] out object? value) 170static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 213public static bool TryGetPrimitiveArray(this SerializationRecord record, [NotNullWhen(true)] out object? value) 217static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 253public static bool TryGetPrimitiveHashtable(this SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 257static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 317static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? exception) 337[NotNullWhen(true)] out object? value)
System.Collections (1)
System\Collections\Generic\SortedSetEqualityComparer.cs (1)
52public override bool Equals([NotNullWhen(true)] object? obj)
System.Collections.Immutable (7)
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (2)
36public static bool TryCreate<TKey, TValue>(Dictionary<TKey, TValue> source, [NotNullWhen(true)] out FrozenDictionary<TKey, TValue>? result) 61private static bool TryCreate<TKey, TKeyUnderlying, TValue>(Dictionary<TKey, TValue> source, [NotNullWhen(true)] out FrozenDictionary<TKey, TValue>? result)
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (1)
307public override bool Equals([NotNullWhen(true)] object? obj)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
844private static bool TryCastToImmutableMap(IEnumerable<KeyValuePair<TKey, TValue>> sequence, [NotNullWhen(true)] out ImmutableDictionary<TKey, TValue>? other)
System\Collections\Immutable\ImmutableList_1.cs (1)
1112private static bool TryCastToImmutableList(IEnumerable<T> sequence, [NotNullWhen(true)] out ImmutableList<T>? other)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
753private static bool TryCastToImmutableMap(IEnumerable<KeyValuePair<TKey, TValue>> sequence, [NotNullWhen(true)] out ImmutableSortedDictionary<TKey, TValue>? other)
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
1002private static bool TryCastToImmutableSortedSet(IEnumerable<T> sequence, [NotNullWhen(true)] out ImmutableSortedSet<T>? other)
System.Collections.Specialized (2)
System\Collections\Specialized\BitVector32.cs (2)
151public override bool Equals([NotNullWhen(true)] object? o) => o is BitVector32 other && Equals(other); 202public override bool Equals([NotNullWhen(true)] object? o) => o is Section other && Equals(other);
System.ComponentModel.Annotations (5)
System\ComponentModel\DataAnnotations\FilterUIHintAttribute.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (2)
69public override bool Equals([NotNullWhen(true)] object? obj) => 122public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
192internal bool TryGetPropertyStoreItem(string propertyName, [NotNullWhen(true)] out PropertyStoreItem? item)
System\ComponentModel\DataAnnotations\Validator.cs (1)
611[NotNullWhen(false)] out ValidationError? validationError)
System.ComponentModel.Composition (8)
Microsoft\Internal\ReflectionServices.cs (1)
82internal static bool TryGetGenericInterfaceType(Type instanceType, Type targetOpenInterfaceType, [NotNullWhen(true)] out Type? targetClosedInterfaceType)
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (1)
56public bool TryTraverse(ComposablePartDefinition part, [NotNullWhen(true)] out IEnumerable<ComposablePartDefinition>? reachableParts)
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (1)
65public bool TryTraverse(ComposablePartDefinition part, [NotNullWhen(true)] out IEnumerable<ComposablePartDefinition>? reachableParts)
System\ComponentModel\Composition\Hosting\FilteredCatalog.IComposablePartCatalogTraversal.cs (1)
22bool TryTraverse(ComposablePartDefinition part, [NotNullWhen(true)] out IEnumerable<ComposablePartDefinition>? reachableParts);
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (1)
536public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (2)
278private static bool TryGetGenericTypeParameters(IEnumerable<object> genericParameters, [NotNullWhen(true)] out Type?[]? genericTypeParameters) 297internal bool TryMakeGenericPartDefinition(Type[] genericTypeParameters, [NotNullWhen(true)] out ComposablePartDefinition? genericPartDefinition)
System\ComponentModel\Composition\ReflectionModel\ReflectionModelServices.cs (1)
302public static bool TryMakeGenericPartDefinition(ComposablePartDefinition partDefinition, IEnumerable<Type> genericParameters, [NotNullWhen(true)] out ComposablePartDefinition? specialization)
System.ComponentModel.Primitives (14)
System\ComponentModel\BrowsableAttribute.cs (1)
47public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\CategoryAttribute.cs (1)
194public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\DescriptionAttribute.cs (1)
44public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\DesignerCategoryAttribute.cs (1)
60public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\DesignerSerializationVisibilityAttribute.cs (1)
56public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\DesignOnlyAttribute.cs (1)
46public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\DisplayNameAttribute.cs (1)
43public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\ImmutableObjectAttribute.cs (1)
46public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\LocalizableAttribute.cs (1)
46public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\MergablePropertyAttribute.cs (1)
52public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\NotifyParentPropertyAttribute.cs (1)
54public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\ParenthesizePropertyNameAttribute.cs (1)
44public override bool Equals([NotNullWhen(true)] object? obj) =>
System\ComponentModel\ReadOnlyAttribute.cs (1)
47public override bool Equals([NotNullWhen(true)] object? value) =>
System\ComponentModel\RefreshPropertiesAttribute.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj) =>
System.ComponentModel.TypeConverter (56)
System\ComponentModel\AmbientValueAttribute.cs (1)
155public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\BaseNumberConverter.cs (1)
110public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\BindableAttribute.cs (1)
78public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\ComplexBindingPropertiesAttribute.cs (1)
56public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\CultureInfoConverter.cs (1)
52public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\DataObjectAttribute.cs (1)
28public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\DataObjectFieldAttribute.cs (1)
43public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\DataObjectMethodAttribute.cs (2)
25public override bool Equals([NotNullWhen(true)] object? obj) 37public override bool Match([NotNullWhen(true)] object? obj)
System\ComponentModel\DateOnlyConverter.cs (1)
26public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\DateTimeConverter.cs (1)
31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\DateTimeOffsetConverter.cs (1)
30public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\DecimalConverter.cs (1)
32public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\DefaultBindingPropertyAttribute.cs (1)
41public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\DefaultEventAttribute.cs (1)
34public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\DefaultPropertyAttribute.cs (1)
34public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\Design\CommandID.cs (1)
33public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\Design\HelpKeywordAttribute.cs (1)
87public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\Design\PropertyTabAttribute.cs (2)
147public override bool Equals([NotNullWhen(true)] object? other) 150public bool Equals([NotNullWhen(true)] PropertyTabAttribute? other)
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (2)
149public override bool Equals([NotNullWhen(true)] object? o) 207public override bool Equals([NotNullWhen(true)] object? obj) => obj is MemberRelationship rel && Equals(rel);
System\ComponentModel\DesignTimeVisibleAttribute.cs (1)
55public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\EnumConverter.cs (1)
55public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\ExtenderProvidedPropertyAttribute.cs (1)
51public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\GuidConverter.cs (1)
31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\InheritanceAttribute.cs (1)
80public override bool Equals([NotNullWhen(true)] object? value)
System\ComponentModel\InstallerTypeAttribute.cs (1)
38public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\InterlockedBitVector32.cs (1)
47public override bool Equals([NotNullWhen(true)] object? o) => o is InterlockedBitVector32 other && Equals(other);
System\ComponentModel\LicenseProviderAttribute.cs (1)
88public override bool Equals([NotNullWhen(true)] object? value)
System\ComponentModel\ListBindableAttribute.cs (1)
32public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\LookupBindingPropertiesAttribute.cs (1)
68public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\MemberDescriptor.cs (1)
243public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\NullableConverter.cs (1)
79public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\PasswordPropertyTextAttribute.cs (1)
57public override bool Equals([NotNullWhen(true)] object? o)
System\ComponentModel\PropertyDescriptor.cs (1)
192public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\ProvidePropertyAttribute.cs (1)
50public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\RecommendedAsConfigurableAttribute.cs (1)
48public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\RunInstallerAttribute.cs (1)
51public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\SettingsBindableAttribute.cs (1)
35public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\TimeOnlyConverter.cs (1)
26public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\TimeSpanConverter.cs (1)
31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\ToolboxItemAttribute.cs (1)
104public override bool Equals([NotNullWhen(true)] object? obj)
System\ComponentModel\ToolboxItemFilterAttribute.cs (2)
83public override bool Equals([NotNullWhen(true)] object? obj) 101public override bool Match([NotNullWhen(true)] object? obj)
System\ComponentModel\TypeConverter.cs (2)
35public bool CanConvertTo([NotNullWhen(true)] Type? destinationType) => CanConvertTo(null, destinationType); 41public virtual bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\TypeListConverter.cs (1)
41public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\UriTypeConverter.cs (1)
32public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\ComponentModel\VersionConverter.cs (1)
31public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\ColorConverter.cs (1)
33public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\PointConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\RectangleConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\SizeConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Drawing\SizeFConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (1)
16public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System.Console (2)
System\ConsoleKeyInfo.cs (1)
51public override bool Equals([NotNullWhen(true)] object? value)
System\TermInfo.DatabaseFactory.cs (1)
85private static bool TryOpen(string filePath, [NotNullWhen(true)] out SafeFileHandle? fd)
System.Data.Common (34)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
480internal static bool IsEmptyArray([NotNullWhen(false)] string?[]? array) => (null == array) || (0 == array.Length);
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
416private static bool IsKeyNameValid([NotNullWhen(true)] string? keyname)
src\libraries\Common\src\System\Data\Common\DbConnectionPoolKey.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj)
System\Data\ColumnTypeConverter.cs (1)
62public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) =>
System\Data\Common\DataColumnMapping.cs (1)
150public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Data\Common\DataTableMapping.cs (1)
172public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Data\Common\DbConnectionStringBuilder.cs (1)
384public virtual bool TryGetValue(string keyword, [NotNullWhen(true)] out object? value)
System\Data\Common\DbProviderFactories.cs (1)
44public static bool TryGetFactory(string providerInvariantName, [NotNullWhen(true)] out DbProviderFactory? factory)
System\Data\ConstraintConverter.cs (1)
20public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) =>
System\Data\DataColumnPropertyDescriptor.cs (1)
46public override bool Equals([NotNullWhen(true)] object? other) =>
System\Data\DataRelationPropertyDescriptor.cs (1)
24public override bool Equals([NotNullWhen(true)] object? other) =>
System\Data\DataTableCollection.cs (1)
380internal bool CanRemove([NotNullWhen(true)] DataTable? table, bool fThrowException)
System\Data\DataTablePropertyDescriptor.cs (1)
24public override bool Equals([NotNullWhen(true)] object? other) =>
System\Data\ForeignKeyConstraint.cs (1)
857public override bool Equals([NotNullWhen(true)] object? key)
System\Data\PrimaryKeyTypeConverter.cs (1)
19public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType) =>
System\Data\RelatedView.cs (1)
93public override bool Equals([NotNullWhen(true)] DataView? dv)
System\Data\RelationshipConverter.cs (1)
22public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
System\Data\Selection.cs (1)
30public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Data\SQLTypes\SQLBinary.cs (1)
359public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLBoolean.cs (1)
466public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLByte.cs (1)
475public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLDateTime.cs (1)
617public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLDecimal.cs (1)
3301public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLDouble.cs (1)
391public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLGuid.cs (1)
282public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLInt16.cs (1)
476public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLInt32.cs (1)
491public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLInt64.cs (1)
550public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLMoney.cs (1)
545public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLSingle.cs (1)
401public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\SQLTypes\SQLString.cs (1)
877public override bool Equals([NotNullWhen(true)] object? value) =>
System\Data\UniqueConstraint.cs (1)
392public override bool Equals([NotNullWhen(true)] object? key2)
System\Data\XmlToDatasetMap.cs (1)
29public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\DataSetMappper.cs (1)
212internal static bool GetRegion(XmlNode? node, [NotNullWhen(true)] out XmlBoundElement? rowElem)
System.Data.Odbc (4)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
480internal static bool IsEmptyArray([NotNullWhen(false)] string?[]? array) => (null == array) || (0 == array.Length);
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
416private static bool IsKeyNameValid([NotNullWhen(true)] string? keyname)
src\libraries\Common\src\System\Data\Common\DbConnectionPoolKey.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj)
System\Data\Odbc\OdbcConnectionStringbuilder.cs (1)
250public override bool TryGetValue(string keyword, [NotNullWhen(true)] out object? value)
System.Data.OleDb (1)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (1)
150public override bool TryGetValue(string keyword, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] out object? value) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); }
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\Activity.cs (2)
1948public override bool Equals([NotNullWhen(true)] object? obj) 2142public override bool Equals([NotNullWhen(true)] object? obj)
System\Diagnostics\ActivityContext.cs (1)
114public override bool Equals([NotNullWhen(true)] object? obj) => (obj is ActivityContext context) ? Equals(context) : false;
System\Diagnostics\ActivityLink.cs (1)
41public override bool Equals([NotNullWhen(true)] object? obj) => (obj is ActivityLink link) && this.Equals(link);
System\Diagnostics\DsesActivitySourceListener.cs (1)
146[NotNullWhen(true)] out DsesFilterAndTransform? spec)
System.Diagnostics.Process (7)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (6)
305private static bool TryFindHierarchyMount(CGroupVersion cgroupVersion, string subsystem, [NotNullWhen(true)] out string? root, [NotNullWhen(true)] out string? path) 317internal static bool TryFindHierarchyMount(CGroupVersion cgroupVersion, string mountInfoFilePath, string subsystem, [NotNullWhen(true)] out string? root, [NotNullWhen(true)] out string? path) 400private static bool TryFindCGroupPathForSubsystem(CGroupVersion cgroupVersion, string subsystem, [NotNullWhen(true)] out string? path) 411internal static bool TryFindCGroupPathForSubsystem(CGroupVersion cgroupVersion, string procCGroupFilePath, string subsystem, [NotNullWhen(true)] out string? path)
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
139private static bool TryReadFile(string path, [NotNullWhen(true)] out string? contents)
System.Diagnostics.StackTrace (1)
System\Diagnostics\SymbolStore\SymbolToken.cs (1)
21public override bool Equals([NotNullWhen(true)] object? obj)
System.Drawing.Primitives (7)
System\Drawing\Color.cs (1)
585public override bool Equals([NotNullWhen(true)] object? obj) => obj is Color other && Equals(other);
System\Drawing\Point.cs (1)
139public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is Point && Equals((Point)obj);
System\Drawing\PointF.cs (1)
137public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is PointF && Equals((PointF)obj);
System\Drawing\Rectangle.cs (1)
159public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is Rectangle && Equals((Rectangle)obj);
System\Drawing\RectangleF.cs (1)
189public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is RectangleF && Equals((RectangleF)obj);
System\Drawing\Size.cs (1)
180public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is Size && Equals((Size)obj);
System\Drawing\SizeF.cs (1)
167public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is SizeF && Equals((SizeF)obj);
System.Formats.Asn1 (2)
System\Formats\Asn1\Asn1Tag.cs (1)
397public override bool Equals([NotNullWhen(true)] object? obj)
System\Formats\Asn1\AsnWriter.cs (1)
819public override bool Equals([NotNullWhen(true)] object? obj) => obj is StackFrame other && Equals(other);
System.Formats.Tar (5)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetGroupName.cs (1)
23internal static bool TryGetGroupName(uint gid, [NotNullWhen(returnValue: true)] out string? groupName)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
227internal static bool EndsInDirectorySeparator([NotNullWhen(true)] string? path) =>
System\Formats\Tar\TarHeader.Read.cs (2)
704[NotNullWhen(returnValue: true)] out string? key, 705[NotNullWhen(returnValue: true)] out string? value)
System\Formats\Tar\TarReader.cs (1)
397private bool TryProcessExtendedAttributesHeader(TarHeader extendedAttributesHeader, bool copyData, [NotNullWhen(returnValue: true)] out TarHeader? actualHeader)
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
227internal static bool EndsInDirectorySeparator([NotNullWhen(true)] string? path) =>
System.IO.Packaging (4)
System\IO\Packaging\PackUriHelper.cs (1)
326internal static bool TryValidatePartUri(Uri partUri, [NotNullWhen(true)] out ValidatedPartUri? validatedPartUri)
System\IO\Packaging\ZipPackagePartPiece.cs (3)
25internal static bool TryParse(ZipArchiveEntry zipArchiveEntry, [NotNullWhen(true)] out ZipPackagePartPiece? partPiece) 54internal static bool TryParseName(string path, [NotNullWhen(true)] out PackUriHelper.ValidatedPartUri? partUri, [NotNullWhen(true)] out string? prefixName, out int pieceNumber, out bool isLastPiece)
System.IO.Pipelines (1)
System\IO\Pipelines\BufferSegmentStack.cs (1)
25public bool TryPop([NotNullWhen(true)] out BufferSegment? result)
System.Linq.Expressions (14)
System\Dynamic\BindingRestrictions.cs (3)
245public override bool Equals([NotNullWhen(true)] object? obj) 268public override bool Equals([NotNullWhen(true)] object? obj) 290public override bool Equals([NotNullWhen(true)] object? obj)
System\Dynamic\CallInfo.cs (1)
86public override bool Equals([NotNullWhen(true)] object? obj)
System\Dynamic\DynamicObject.cs (1)
113public virtual bool TryCreateInstance(CreateInstanceBinder binder, object?[]? args, [NotNullWhen(true)] out object? result)
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
46public override bool Equals([NotNullWhen(true)] object? obj)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
1096private static bool IsRefInstance([NotNullWhen(true)] Expression? instance)
System\Linq\Expressions\Interpreter\CallInstruction.cs (1)
248protected static bool TryGetLightLambdaTarget(object? instance, [NotNullWhen(true)] out LightLambda? lightLambda)
System\Linq\Expressions\Interpreter\LabelInfo.cs (1)
316internal bool TryGetLabelInfo(LabelTarget target, [NotNullWhen(true)] out LabelInfo? info)
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
102internal bool HasHandler(InterpretedFrame frame, Exception exception, [NotNullWhen(true)] out ExceptionHandler? handler, out object? unwrappedException)
System\Linq\Expressions\Interpreter\LocalVariables.cs (2)
59public override bool Equals([NotNullWhen(true)] object? obj) => obj is LocalDefinition other && Equals(other); 137public bool TryGetLocalOrClosure(ParameterExpression var, [NotNullWhen(true)] out LocalVariable? local)
System\Linq\Expressions\LambdaExpression.cs (2)
1057public static bool TryGetFuncType(Type[] typeArgs, [NotNullWhen(true)] out Type? funcType) 1103public static bool TryGetActionType(Type[] typeArgs, [NotNullWhen(true)] out Type? actionType)
System.Linq.Parallel (2)
System\Linq\Parallel\Channels\AsynchronousChannel.cs (2)
443private bool TryDequeueChunk([NotNullWhen(true)] ref T[]? chunk) 532private bool TryDequeueChunk([NotNullWhen(true)] ref T[]? chunk, ref bool isDone)
System.Memory (7)
System\Buffers\ReadOnlySequence.Helpers.cs (3)
516internal bool TryGetReadOnlySequenceSegment([NotNullWhen(true)] out ReadOnlySequenceSegment<T>? startSegment, out int startIndex, [NotNullWhen(true)] out ReadOnlySequenceSegment<T>? endSegment, out int endIndex) 554internal bool TryGetString([NotNullWhen(true)] out string? text, out int start, out int length)
System\Runtime\InteropServices\SequenceMarshal.cs (3)
19[NotNullWhen(true)] out ReadOnlySequenceSegment<T>? startSegment, 21[NotNullWhen(true)] out ReadOnlySequenceSegment<T>? endSegment, 56internal static bool TryGetString(ReadOnlySequence<char> sequence, [NotNullWhen(true)] out string? text, out int start, out int length)
System\SequencePosition.cs (1)
50public override bool Equals([NotNullWhen(true)] object? obj) => obj is SequencePosition other && this.Equals(other);
System.Memory.Data (1)
System\BinaryData.cs (1)
529public override bool Equals([NotNullWhen(true)] object? obj) => ReferenceEquals(this, obj);
System.Net.Http (99)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (4)
80public bool Equals([NotNullWhen(true)] CredentialCacheKey? other) 96public override bool Equals([NotNullWhen(true)] object? obj) => Equals(obj as CredentialCacheKey); 104public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch)
src\libraries\Common\src\System\Net\HttpKnownHeaderNames.TryGetHeaderName.cs (3)
18public static bool TryGetHeaderName(char[] array, int startIndex, int length, [NotNullWhen(true)] out string? name) 87[NotNullWhen(true)] out string? name) 343private static bool TryMatch<T>(string known, T key, int startIndex, int length, Func<string, T, int, int, bool> equals, [NotNullWhen(true)] out string? name)
System\Net\Http\Headers\AltSvcHeaderParser.cs (2)
187private static bool TryReadPercentEncodedAlpnProtocolName(string value, int startIndex, [NotNullWhen(true)] out string? result, out int readLength) 241private static bool TryReadUnknownPercentEncodedAlpnProtocolName(ReadOnlySpan<char> value, [NotNullWhen(true)] out string? result)
System\Net\Http\Headers\AuthenticationHeaderValue.cs (3)
63public override bool Equals([NotNullWhen(true)] object? obj) 103public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out AuthenticationHeaderValue? parsedValue)
System\Net\Http\Headers\ByteArrayHeaderParser.cs (2)
27public override bool TryParseValue([NotNullWhen(true)] string? value, object? storeValue, ref int index, [NotNullWhen(true)] out object? parsedValue)
System\Net\Http\Headers\CacheControlHeaderValue.cs (2)
307public override bool Equals([NotNullWhen(true)] object? obj) => 335public static bool TryParse(string? input, [NotNullWhen(true)] out CacheControlHeaderValue? parsedValue)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (4)
159public override bool Equals([NotNullWhen(true)] object? obj) 195public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out ContentDispositionHeaderValue? parsedValue) 446private static bool TryDecodeMime(string? input, [NotNullWhen(true)] out string? output)
System\Net\Http\Headers\ContentRangeHeaderValue.cs (4)
94public override bool Equals([NotNullWhen(true)] object? obj) => 144public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out ContentRangeHeaderValue? parsedValue) 316int toStartIndex, int toLength, int lengthStartIndex, int lengthLength, [NotNullWhen(true)] out object? parsedValue)
System\Net\Http\Headers\CookieHeaderParser.cs (1)
19public override bool TryParseValue(string? value, object? storeValue, ref int index, [NotNullWhen(true)] out object? parsedValue)
System\Net\Http\Headers\DateHeaderParser.cs (2)
27public override bool TryParseValue([NotNullWhen(true)] string? value, object? storeValue, ref int index, [NotNullWhen(true)] out object? parsedValue)
System\Net\Http\Headers\EntityTagHeaderValue.cs (3)
56public override bool Equals([NotNullWhen(true)] object? obj) => 72public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out EntityTagHeaderValue? parsedValue)
System\Net\Http\Headers\HeaderDescriptor.cs (2)
102internal static bool TryGetStaticQPackHeader(int index, out HeaderDescriptor descriptor, [NotNullWhen(true)] out string? knownValue) 260private static bool TryDecodeUtf8(ReadOnlySpan<byte> input, [NotNullWhen(true)] out string? decoded)
System\Net\Http\Headers\HttpHeaderParser.cs (1)
49public abstract bool TryParseValue(string? value, object? storeValue, ref int index, [NotNullWhen(true)] out object? parsedValue);
System\Net\Http\Headers\HttpHeaders.cs (4)
242public bool TryGetValues(string name, [NotNullWhen(true)] out IEnumerable<string>? values) 253internal bool TryGetValues(HeaderDescriptor descriptor, [NotNullWhen(true)] out IEnumerable<string>? values) 707internal bool TryGetHeaderValue(HeaderDescriptor descriptor, [NotNullWhen(true)] out object? value) 722private bool TryGetAndParseHeaderInfo(HeaderDescriptor key, [NotNullWhen(true)] out HeaderStoreItemInfo? info)
System\Net\Http\Headers\MediaTypeHeaderValue.cs (3)
130public override bool Equals([NotNullWhen(true)] object? obj) => 162public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out MediaTypeHeaderValue? parsedValue)
System\Net\Http\Headers\MediaTypeWithQualityHeaderValue.cs (2)
52public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out MediaTypeWithQualityHeaderValue? parsedValue)
System\Net\Http\Headers\NameValueHeaderValue.cs (3)
81public override bool Equals([NotNullWhen(true)] object? obj) 122public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out NameValueHeaderValue? parsedValue)
System\Net\Http\Headers\NameValueWithParametersHeaderValue.cs (3)
43public override bool Equals([NotNullWhen(true)] object? obj) 82public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out NameValueWithParametersHeaderValue? parsedValue)
System\Net\Http\Headers\ProductHeaderValue.cs (3)
60public override bool Equals([NotNullWhen(true)] object? obj) 91public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out ProductHeaderValue? parsedValue)
System\Net\Http\Headers\ProductInfoHeaderParser.cs (2)
24public override bool TryParseValue([NotNullWhen(true)] string? value, object? storeValue, ref int index, [NotNullWhen(true)] out object? parsedValue)
System\Net\Http\Headers\ProductInfoHeaderValue.cs (3)
54public override bool Equals([NotNullWhen(true)] object? obj) 96public static bool TryParse([NotNullWhen(true)] string input, [NotNullWhen(true)] out ProductInfoHeaderValue? parsedValue)
System\Net\Http\Headers\RangeConditionHeaderValue.cs (3)
46public override bool Equals([NotNullWhen(true)] object? obj) => 60public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out RangeConditionHeaderValue? parsedValue)
System\Net\Http\Headers\RangeHeaderValue.cs (3)
84public override bool Equals([NotNullWhen(true)] object? obj) 118public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out RangeHeaderValue? parsedValue)
System\Net\Http\Headers\RangeItemHeaderValue.cs (1)
69public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\Headers\RetryConditionHeaderValue.cs (3)
49public override bool Equals([NotNullWhen(true)] object? obj) => 64public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out RetryConditionHeaderValue? parsedValue)
System\Net\Http\Headers\StringWithQualityHeaderValue.cs (3)
53public override bool Equals([NotNullWhen(true)] object? obj) => 71public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out StringWithQualityHeaderValue? parsedValue)
System\Net\Http\Headers\TransferCodingHeaderValue.cs (3)
47public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out TransferCodingHeaderValue? parsedValue) 120public override bool Equals([NotNullWhen(true)] object? obj)
System\Net\Http\Headers\TransferCodingWithQualityHeaderValue.cs (2)
51public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out TransferCodingWithQualityHeaderValue? parsedValue)
System\Net\Http\Headers\UriHeaderParser.cs (2)
26public override bool TryParseValue([NotNullWhen(true)] string? value, object? storeValue, ref int index, [NotNullWhen(true)] out object? parsedValue)
System\Net\Http\Headers\ViaHeaderValue.cs (3)
102public override bool Equals([NotNullWhen(true)] object? obj) => 124public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out ViaHeaderValue? parsedValue)
System\Net\Http\Headers\WarningHeaderValue.cs (4)
98public override bool Equals([NotNullWhen(true)] object? obj) => 122public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out WarningHeaderValue? parsedValue) 182private static bool TryReadAgent(string input, ref int current, [NotNullWhen(true)] out string? agent)
System\Net\Http\HttpContent.cs (1)
723private static bool TryDetectEncoding(ReadOnlySpan<byte> data, [NotNullWhen(true)] out Encoding? encoding, out int preambleLength)
System\Net\Http\HttpMethod.cs (2)
51public bool Equals([NotNullWhen(true)] HttpMethod? other) => 55public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (2)
35private bool TryGetPooledHttp11Connection(HttpRequestMessage request, bool async, [NotNullWhen(true)] out HttpConnection? connection, [NotNullWhen(false)] out HttpConnectionWaiter<HttpConnection>? waiter)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
64private bool TryGetPooledHttp2Connection(HttpRequestMessage request, [NotNullWhen(true)] out Http2Connection? connection, out HttpConnectionWaiter<Http2Connection?>? waiter)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (3)
138private bool TryGetPooledHttp3Connection(HttpRequestMessage request, [NotNullWhen(true)] out Http3Connection? connection, [NotNullWhen(false)] out HttpConnectionWaiter<Http3Connection?>? waiter) 616private bool TryGetHttp3Authority(HttpRequestMessage request, [NotNullWhen(true)] out HttpAuthority? authority, out Exception? reasonException)
System\Net\Http\SocketsHttpHandler\HttpAuthority.cs (2)
42public bool Equals([NotNullWhen(true)] HttpAuthority? other) 47public override bool Equals([NotNullWhen(true)] object? obj)
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
545public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Http\SocketsHttpHandler\HttpEnvironmentProxy.Unix.cs (1)
15public static bool TryCreate([NotNullWhen(true)] out IWebProxy? proxy)
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (3)
93public bool ReadNext([NotNullWhen(true)] out Uri? uri, out bool isFinalProxy) 153private bool ReadNextHelper([NotNullWhen(true)] out Uri? uri, out bool isFinalProxy) 196private static bool TryParseProxyConfigPart(ReadOnlySpan<char> proxyString, bool secure, bool manualSettingsUsed, [NotNullWhen(true)] out Uri? uri, out int charactersConsumed)
System.Net.HttpListener (3)
System\Net\Managed\HttpListenerContext.Managed.cs (2)
58internal static bool TryParseBasicAuth(string headerValue, out HttpStatusCode errorCode, [NotNullWhen(true)] out string? username, [NotNullWhen(true)] out string? password)
System\Net\Managed\ListenerPrefix.cs (1)
84public override bool Equals([NotNullWhen(true)] object? o)
System.Net.Mail (14)
System\Net\Mail\MailAddress.cs (8)
85public static bool TryCreate([NotNullWhen(true)] string? address, [NotNullWhen(true)] out MailAddress? result) => TryCreate(address, displayName: null, out result); 94public static bool TryCreate([NotNullWhen(true)] string? address, string? displayName, [NotNullWhen(true)] out MailAddress? result) => TryCreate(address, displayName, displayNameEncoding: null, out result); 104public static bool TryCreate([NotNullWhen(true)] string? address, string? displayName, Encoding? displayNameEncoding, [NotNullWhen(true)] out MailAddress? result) 120private static bool TryParse([NotNullWhen(true)] string? address, string? displayName, Encoding? displayNameEncoding, out (string displayName, string user, string host, Encoding displayNameEncoding) parsedData, bool throwExceptionIfFail) 271public override bool Equals([NotNullWhen(true)] object? value)
System\Net\Mail\MailAddressParser.cs (4)
210private static bool TryParseDomain(string data, ref int index, [NotNullWhen(true)] out string? domain, bool throwExceptionIfFail) 272bool expectMultipleAddresses, [NotNullWhen(true)] out string? localPart, bool throwExceptionIfFail) 358private static bool TryParseDisplayName(string data, ref int index, bool expectMultipleAddresses, [NotNullWhen(true)] out string? displayName, bool throwExceptionIfFail) 436internal static bool TryNormalizeOrThrow(string input, [NotNullWhen(true)] out string? normalizedString, bool throwExceptionIfFail)
System\Net\Mime\ContentDisposition.cs (1)
244public override bool Equals([NotNullWhen(true)] object? rparam)
System\Net\Mime\ContentType.cs (1)
212public override bool Equals([NotNullWhen(true)] object? rparam) =>
System.Net.NameResolution (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj) =>
System.Net.NetworkInformation (4)
src\libraries\Common\src\System\IO\RowConfigReader.cs (1)
64public bool TryGetNextValue(string key, [NotNullWhen(true)] out string? value)
System\Net\NetworkInformation\PhysicalAddress.cs (3)
60public override bool Equals([NotNullWhen(true)] object? comparand) => 86public static bool TryParse(string? address, [NotNullWhen(true)] out PhysicalAddress? value) 97public static bool TryParse(ReadOnlySpan<char> address, [NotNullWhen(true)] out PhysicalAddress? value)
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
128[NotNullWhen(true)] out PingReply? reply)
System.Net.Primitives (22)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (4)
80public bool Equals([NotNullWhen(true)] CredentialCacheKey? other) 96public override bool Equals([NotNullWhen(true)] object? obj) => Equals(obj as CredentialCacheKey); 104public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch)
System\Net\Cookie.cs (1)
700public override bool Equals([NotNullWhen(true)] object? comparand)
System\Net\CredentialCache.cs (1)
382public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\DnsEndPoint.cs (1)
36public override bool Equals([NotNullWhen(true)] object? comparand) =>
System\Net\IPAddress.cs (9)
242public static bool TryParse([NotNullWhen(true)] string? ipString, [NotNullWhen(true)] out IPAddress? address) 260public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out IPAddress? result) 266public static bool TryParse(ReadOnlySpan<char> ipSpan, [NotNullWhen(true)] out IPAddress? address) 273static bool IUtf8SpanParsable<IPAddress>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 277static bool IParsable<IPAddress>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 282static bool ISpanParsable<IPAddress>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 677public override bool Equals([NotNullWhen(true)] object? comparand)
System\Net\IPEndPoint.cs (3)
90public static bool TryParse(string s, [NotNullWhen(true)] out IPEndPoint? result) 95public static bool TryParse(ReadOnlySpan<char> s, [NotNullWhen(true)] out IPEndPoint? result) 172public override bool Equals([NotNullWhen(true)] object? comparand)
System\Net\IPNetwork.cs (2)
324public override bool Equals([NotNullWhen(true)] object? obj) => 367static bool IParsable<IPNetwork>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out IPNetwork result) => TryParse(s, out result);
System.Net.Quic (2)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
429public override bool Equals([NotNullWhen(true)] object? obj) => obj is X509VerifyStatusCode other && Equals(other);
System\Net\Quic\Internal\ThrowHelper.cs (1)
33internal static bool TryGetStreamExceptionForMsQuicStatus(int status, [NotNullWhen(true)] out Exception? exception)
System.Net.Requests (1)
System\Net\HttpWebRequest.cs (1)
1625private bool TryGetHostUri(string hostName, [NotNullWhen(true)] out Uri? hostUri)
System.Net.Security (3)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
429public override bool Equals([NotNullWhen(true)] object? obj) => obj is X509VerifyStatusCode other && Equals(other);
System\Net\Security\SslApplicationProtocol.cs (1)
57public override bool Equals([NotNullWhen(true)] object? obj) => obj is SslApplicationProtocol protocol && Equals(protocol);
System\Net\Security\SslSessionsCache.cs (1)
73public override bool Equals([NotNullWhen(true)] object? obj) =>
System.Net.Sockets (4)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Sockets\IPPacketInformation.cs (1)
29public override bool Equals([NotNullWhen(true)] object? comparand) =>
System\Net\Sockets\UdpReceiveResult.cs (1)
66public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
139public override bool Equals([NotNullWhen(true)] object? obj)
System.Numerics.Tensors (2)
System\NIndex.cs (1)
146public override bool Equals([NotNullWhen(true)] object? value) => value is NIndex other && _value == other._value;
System\NRange.cs (1)
48public override bool Equals([NotNullWhen(true)] object? value) =>
System.ObjectModel (1)
System\ComponentModel\TypeConverterAttribute.cs (1)
61public override bool Equals([NotNullWhen(true)] object? obj)
System.Private.CoreLib (356)
src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
139private static bool TryReadFile(string path, [NotNullWhen(true)] out string? contents)
src\libraries\Common\src\System\IO\PathInternal.cs (1)
227internal static bool EndsInDirectorySeparator([NotNullWhen(true)] string? path) =>
src\libraries\System.Private.CoreLib\src\System\ApplicationId.cs (1)
71public override bool Equals([NotNullWhen(true)] object? o) =>
src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (1)
125public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Attribute.cs (1)
21public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Boolean.cs (3)
119public override bool Equals([NotNullWhen(true)] object? obj) 238public static bool TryParse([NotNullWhen(true)] string? value, out bool result) => 407static bool IParsable<bool>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out bool result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\Buffers\StandardFormat.cs (1)
135public override bool Equals([NotNullWhen(true)] object? obj) => obj is StandardFormat other && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Byte.cs (4)
75public override bool Equals([NotNullWhen(true)] object? obj) 114public static bool TryParse([NotNullWhen(true)] string? s, out byte result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 124public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out byte result) 1111public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out byte result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Char.cs (4)
116public override bool Equals([NotNullWhen(true)] object? obj) 211public static bool TryParse([NotNullWhen(true)] string? s, out char result) 1919static bool INumberBase<char>.TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out char result) => TryParse(s, out result); 1929static bool IParsable<char>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out char result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Comparer.cs (4)
70public override bool Equals([NotNullWhen(true)] object? obj) => 105public override bool Equals([NotNullWhen(true)] object? obj) => 123public override bool Equals([NotNullWhen(true)] object? obj) => 141public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\EqualityComparer.cs (5)
136public override bool Equals([NotNullWhen(true)] object? obj) => 176public override bool Equals([NotNullWhen(true)] object? obj) => 205public override bool Equals([NotNullWhen(true)] object? obj) => 226public override bool Equals([NotNullWhen(true)] object? obj) => 259public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSetEqualityComparer.cs (1)
75public override bool Equals([NotNullWhen(true)] object? obj) => obj is HashSetEqualityComparer<T>;
src\libraries\System.Private.CoreLib\src\System\ComponentModel\DefaultValueAttribute.cs (1)
259public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\ComponentModel\EditorBrowsableAttribute.cs (1)
22public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (5)
109public static bool IsDBNull([NotNullWhen(true)] object? value) 315public static bool ToBoolean([NotNullWhen(true)] object? value) 320public static bool ToBoolean([NotNullWhen(true)] object? value, IFormatProvider? provider) 381public static bool ToBoolean([NotNullWhen(true)] string? value) 388public static bool ToBoolean([NotNullWhen(true)] string? value, IFormatProvider? provider)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (14)
269public override bool Equals([NotNullWhen(true)] object? value) => value is DateOnly dateOnly && _dayNumber == dateOnly._dayNumber; 538public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, out DateOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result); 549public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) => 609public static bool TryParse([NotNullWhen(true)] string? s, out DateOnly result) => TryParse(s, null, DateTimeStyles.None, out result); 619public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 638public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string? format, out DateOnly result) => TryParseExact(s, format, null, DateTimeStyles.None, out result); 650public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string? format, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 668public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, out DateOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result); 679public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateOnly result) 836public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out DateOnly result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (9)
1187public override bool Equals([NotNullWhen(true)] object? value) 1783public static bool TryParse([NotNullWhen(true)] string? s, out DateTime result) 1798public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, DateTimeStyles styles, out DateTime result) 1817public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string? format, IFormatProvider? provider, DateTimeStyles style, out DateTime result) 1836public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateTime result) 1849public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out DateTime result) 2032public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out DateTime result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (9)
565public override bool Equals([NotNullWhen(true)] object? obj) => 813public static bool TryParse([NotNullWhen(true)] string? input, out DateTimeOffset result) 831public static bool TryParse([NotNullWhen(true)] string? input, IFormatProvider? formatProvider, DateTimeStyles styles, out DateTimeOffset result) 857public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string? format, IFormatProvider? formatProvider, DateTimeStyles styles, 886public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string?[]? formats, IFormatProvider? formatProvider, DateTimeStyles styles, 907ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.DateTimeFormat)] string?[]? formats, IFormatProvider? formatProvider, DateTimeStyles styles, out DateTimeOffset result) 1034public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out DateTimeOffset result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (4)
447public override bool Equals([NotNullWhen(true)] object? value) => 541public static bool TryParse([NotNullWhen(true)] string? s, out decimal result) => TryParse(s, NumberStyles.Number, provider: null, out result); 551public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out decimal result) 1810public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out decimal result) => TryParse(s, NumberStyles.Number, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventDescriptor.cs (1)
94public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Double.cs (4)
301public override bool Equals([NotNullWhen(true)] object? obj) 415public static bool TryParse([NotNullWhen(true)] string? s, out double result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 425public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out double result) 1472public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out double result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Enum.cs (9)
672public static bool TryParse(Type enumType, string? value, [NotNullWhen(true)] out object? result) => 680public static bool TryParse(Type enumType, ReadOnlySpan<char> value, [NotNullWhen(true)] out object? result) => 692public static bool TryParse(Type enumType, string? value, bool ignoreCase, [NotNullWhen(true)] out object? result) 712public static bool TryParse(Type enumType, ReadOnlySpan<char> value, bool ignoreCase, [NotNullWhen(true)] out object? result) => 716private static unsafe bool TryParse(Type enumType, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, [NotNullWhen(true)] out object? result) 774static bool TryParseRareTypes(RuntimeType rt, ReadOnlySpan<char> value, bool ignoreCase, bool throwOnFailure, [NotNullWhen(true)] out long result) 833public static bool TryParse<TEnum>([NotNullWhen(true)] string? value, out TEnum result) where TEnum : struct => 855public static bool TryParse<TEnum>([NotNullWhen(true)] string? value, bool ignoreCase, out TEnum result) where TEnum : struct 1190public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.cs (1)
1513public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
176internal static unsafe bool GetDefaultLocaleName([NotNullWhen(true)] out string? windowsName)
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (1)
636public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Globalization\GlobalizationMode.cs (2)
46private static bool TryGetAppLocalIcuSwitchValue([NotNullWhen(true)] out string? value) => 48private static bool TryGetStringValue(string switchName, string envVariable, [NotNullWhen(true)] out string? value)
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (1)
146public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Globalization\RegionInfo.cs (1)
184public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Globalization\SortKey.cs (1)
62public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Globalization\SortVersion.cs (2)
42public override bool Equals([NotNullWhen(true)] object? obj) 47public bool Equals([NotNullWhen(true)] SortVersion? other)
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
30public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
493public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Guid.cs (5)
346public static bool TryParse([NotNullWhen(true)] string? input, out Guid result) 404public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.GuidFormat)] string? format, out Guid result) 983public override bool Equals([NotNullWhen(true)] object? o) => o is Guid g && EqualsCore(this, g); 1739public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out Guid result) => TryParse(s, out result);
src\libraries\System.Private.CoreLib\src\System\Half.cs (4)
367public static bool TryParse([NotNullWhen(true)] string? s, out Half result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 391public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out Half result) 472public override bool Equals([NotNullWhen(true)] object? obj) 2164public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out Half result) => TryParse(s, DefaultParseStyle, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Index.cs (1)
125public override bool Equals([NotNullWhen(true)] object? value) => value is Index && _value == ((Index)value)._value;
src\libraries\System.Private.CoreLib\src\System\Int128.cs (4)
83public override bool Equals([NotNullWhen(true)] object? obj) 147public static bool TryParse([NotNullWhen(true)] string? s, out Int128 result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 157public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out Int128 result) 1934public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out Int128 result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Int16.cs (4)
76public override bool Equals([NotNullWhen(true)] object? obj) 147public static bool TryParse([NotNullWhen(true)] string? s, out short result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 157public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out short result) 1308public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out short result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (4)
93public override bool Equals([NotNullWhen(true)] object? obj) 163public static bool TryParse([NotNullWhen(true)] string? s, out int result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 173public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out int result) 1350public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out int result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (4)
90public override bool Equals([NotNullWhen(true)] object? obj) 160public static bool TryParse([NotNullWhen(true)] string? s, out long result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 170public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out long result) 1353public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out long result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (4)
88public override bool Equals([NotNullWhen(true)] object? obj) => (obj is nint other) && Equals(other); 225public static bool TryParse([NotNullWhen(true)] string? s, out nint result) 232public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out nint result) 238public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out nint result)
src\libraries\System.Private.CoreLib\src\System\IO\Directory.cs (1)
80public static bool Exists([NotNullWhen(true)] string? path)
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
92public static bool Exists([NotNullWhen(true)] string? path)
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (3)
93public static bool Exists([NotNullWhen(true)] string? path) 320public static bool HasExtension([NotNullWhen(true)] string? path) 967public static bool EndsInDirectorySeparator([NotNullWhen(true)] string? path) => PathInternal.EndsInDirectorySeparator(path);
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
124public static bool IsPathRooted([NotNullWhen(true)] string? path)
src\libraries\System.Private.CoreLib\src\System\IParsable.cs (1)
27static abstract bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out TSelf result);
src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
447public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
420static abstract bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, [MaybeNullWhen(false)] out TSelf result);
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.cs (1)
314public override readonly bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.Impl.cs (1)
477public override readonly bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (1)
690public override readonly bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (1)
1706public override readonly bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.cs (1)
176public override readonly bool Equals([NotNullWhen(true)] object? obj) => (obj is Plane other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Numerics\Quaternion.cs (1)
431public override readonly bool Equals([NotNullWhen(true)] object? obj) => (obj is Quaternion other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (1)
232public override bool Equals([NotNullWhen(true)] object? obj) => obj is TotalOrderIeee754Comparer<T>;
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (1)
696public override bool Equals([NotNullWhen(true)] object? obj) => (obj is Vector<T> other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (1)
1044public override readonly bool Equals([NotNullWhen(true)] object? obj) => (obj is Vector2 other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (1)
1054public override readonly bool Equals([NotNullWhen(true)] object? obj) => (obj is Vector3 other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (1)
1097public override readonly bool Equals([NotNullWhen(true)] object? obj) => (obj is Vector4 other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Range.cs (1)
47public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\ReadOnlyMemory.cs (1)
359public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeNamedArgument.cs (1)
52public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeTypedArgument.cs (1)
89public override bool Equals([NotNullWhen(true)] object? obj) => obj is CustomAttributeTypedArgument cata && Equals(cata);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\Label.cs (1)
30public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\Opcode.cs (1)
123public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
36public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (2)
25public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo) 256public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) { throw new NotSupportedException(); }
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokeUtils.cs (1)
112private static bool TryConvertPointer(object srcObject, [NotNullWhen(true)] out object? dstPtr)
src\libraries\System.Private.CoreLib\src\System\Reflection\ModifiedType.cs (1)
70public override bool Equals([NotNullWhen(true)] object? obj) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
src\libraries\System.Private.CoreLib\src\System\Reflection\Pointer.cs (1)
43public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (3)
89public sealed override bool IsAssignableFrom([NotNullWhen(true)] Type? c) => throw new NotSupportedException(SR.NotSupported_SignatureType); 192public sealed override bool IsEquivalentTo([NotNullWhen(true)] Type? other) => throw new NotSupportedException(SR.NotSupported_SignatureType); 193public sealed override bool IsInstanceOfType([NotNullWhen(true)] object? o) => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeDelegator.cs (1)
19public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo)
src\libraries\System.Private.CoreLib\src\System\Reflection\TypeInfo.cs (1)
108public virtual bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (1)
664internal bool TryGetEntry(int index, [NotNullWhen(true)] out TKey? key, [MaybeNullWhen(false)] out TValue value)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (1)
53public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CLong.cs (1)
58public override bool Equals([NotNullWhen(true)] object? o) => o is CLong other && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CULong.cs (1)
58public override bool Equals([NotNullWhen(true)] object? o) => o is CULong other && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.cs (1)
168public override readonly bool Equals([NotNullWhen(true)] object? o) => o is GCHandle other && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (3)
332public static bool TryGetMemoryManager<T, TManager>(ReadOnlyMemory<T> memory, [NotNullWhen(true)] out TManager? manager) 353public static bool TryGetMemoryManager<T, TManager>(ReadOnlyMemory<T> memory, [NotNullWhen(true)] out TManager? manager, out int start, out int length) 444public static bool TryGetString(ReadOnlyMemory<char> memory, [NotNullWhen(true)] out string? text, out int start, out int length)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (4)
695public static bool TryParse([NotNullWhen(true)] string? s, out NFloat result) 732public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out NFloat result) 821public override bool Equals([NotNullWhen(true)] object? obj) => (obj is NFloat other) && Equals(other); 1794public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out NFloat result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\OSPlatform.cs (1)
45public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128_1.cs (1)
386public override bool Equals([NotNullWhen(true)] object? obj) => (obj is Vector128<T> other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256_1.cs (1)
383public override bool Equals([NotNullWhen(true)] object? obj) => (obj is Vector256<T> other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512_1.cs (1)
383public override bool Equals([NotNullWhen(true)] object? obj) => (obj is Vector512<T> other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64_1.cs (1)
442public override bool Equals([NotNullWhen(true)] object? obj) => (obj is Vector64<T> other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\StreamingContext.cs (1)
30public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (2)
62public override bool Equals([NotNullWhen(true)] object? obj) 67public bool Equals([NotNullWhen(true)] FrameworkName? other)
src\libraries\System.Private.CoreLib\src\System\RuntimeType.cs (3)
257public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo) 260public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) 771internal static bool TryGetByRefElementType(RuntimeType type, [NotNullWhen(true)] out RuntimeType? elementType)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (4)
78public override bool Equals([NotNullWhen(true)] object? obj) 150public static bool TryParse([NotNullWhen(true)] string? s, out sbyte result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 160public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out sbyte result) 1271public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out sbyte result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMapState.cs (1)
192static bool TryRemoveDuplicates(ReadOnlySpan<char> values, [NotNullWhen(true)] out char[]? deduplicated)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (1)
131static bool TryCreateJumpTable(Dictionary<char, int> children, [NotNullWhen(true)] out int[]? table)
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (1)
315private static bool TryGenerateAllCasePermutationsForPrefixes(ReadOnlySpan<string> values, int n, int maxValues, [NotNullWhen(true)] out string[]? newValues)
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (5)
214public bool Equal([NotNullWhen(true)] SecurityElement? other) 291public static bool IsValidTag([NotNullWhen(true)] string? tag) => 294public static bool IsValidText([NotNullWhen(true)] string? text) => 297public static bool IsValidAttributeName([NotNullWhen(true)] string? name) => 300public static bool IsValidAttributeValue([NotNullWhen(true)] string? value) =>
src\libraries\System.Private.CoreLib\src\System\Single.cs (4)
322public override bool Equals([NotNullWhen(true)] object? obj) 410public static bool TryParse([NotNullWhen(true)] string? s, out float result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider: null, out result); 420public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out float result) 1491public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out float result) => TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, provider, out result);
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (3)
613public override bool Equals([NotNullWhen(true)] object? obj) 629public bool Equals([NotNullWhen(true)] string? value) 648public bool Equals([NotNullWhen(true)] string? value, StringComparison comparisonType)
src\libraries\System.Private.CoreLib\src\System\String.cs (3)
503public static bool IsNullOrEmpty([NotNullWhen(false)] string? value) 508public static bool IsNullOrWhiteSpace([NotNullWhen(false)] string? value) 761static bool IParsable<string>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [MaybeNullWhen(returnValue: false)] out string result)
src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (5)
130public static bool IsWellKnownCultureAwareComparer(IEqualityComparer<string?>? comparer, [NotNullWhen(true)] out CompareInfo? compareInfo, out CompareOptions compareOptions) 150private protected virtual bool IsWellKnownCultureAwareComparerCore([NotNullWhen(true)] out CompareInfo? compareInfo, out CompareOptions compareOptions) 293public override bool Equals([NotNullWhen(true)] object? obj) 313private protected override bool IsWellKnownCultureAwareComparerCore([NotNullWhen(true)] out CompareInfo? compareInfo, out CompareOptions compareOptions) 412public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (1)
21public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\DecoderReplacementFallback.cs (1)
72public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (1)
25public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (1)
72public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
1052public override bool Equals([NotNullWhen(true)] object? value) =>
src\libraries\System.Private.CoreLib\src\System\Text\EncodingInfo.cs (1)
63public override bool Equals([NotNullWhen(true)] object? value) => value is EncodingInfo that && CodePage == that.CodePage;
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
778public override bool Equals([NotNullWhen(true)] object? obj) => (obj is Rune other) && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (1)
1959public bool Equals([NotNullWhen(true)] StringBuilder? sb)
src\libraries\System.Private.CoreLib\src\System\Text\UnicodeEncoding.cs (1)
1784public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (1)
1137public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Text\UTF7Encoding.cs (2)
98public override bool Equals([NotNullWhen(true)] object? value) 833public override bool Equals([NotNullWhen(true)] object? value) => value is DecoderUTF7Fallback;
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
877public override bool Equals([NotNullWhen(true)] object? value)
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationToken.cs (1)
319public override bool Equals([NotNullWhen(true)] object? other) => other is CancellationToken && Equals((CancellationToken)other);
src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenRegistration.cs (1)
140public override bool Equals([NotNullWhen(true)] object? obj) => obj is CancellationTokenRegistration other && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Threading\EventWaitHandle.cs (1)
49public static bool TryOpenExisting(string name, [NotNullWhen(true)] out EventWaitHandle? result) =>
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (1)
596public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Threading\LowLevelLifoSemaphore.cs (1)
369public override bool Equals([NotNullWhen(true)] object? obj) => obj is Counts other && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Threading\Mutex.cs (1)
58public static bool TryOpenExisting(string name, [NotNullWhen(true)] out Mutex? result) =>
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.ThreadCounts.cs (1)
120public override bool Equals([NotNullWhen(true)] object? obj) => obj is ThreadCounts other && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.WorkerTracking.cs (1)
122public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\Threading\Semaphore.cs (1)
51public static bool TryOpenExisting(string name, [NotNullWhen(true)] out Semaphore? result) =>
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (2)
150public override bool Equals([NotNullWhen(true)] object? obj) => 547public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (14)
433public override bool Equals([NotNullWhen(true)] object? value) => value is TimeOnly timeOnly && _ticks == timeOnly._ticks; 708public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, out TimeOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result); 719public static bool TryParseExact(ReadOnlySpan<char> s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) => 779public static bool TryParse([NotNullWhen(true)] string? s, out TimeOnly result) => TryParse(s, null, DateTimeStyles.None, out result); 789public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 808public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string? format, out TimeOnly result) => TryParseExact(s, format, null, DateTimeStyles.None, out result); 820public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string? format, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 838public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, out TimeOnly result) => TryParseExact(s, formats, null, DateTimeStyles.None, out result); 849public static bool TryParseExact([NotNullWhen(true)] string? s, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeOnlyFormat)] string?[]? formats, IFormatProvider? provider, DateTimeStyles style, out TimeOnly result) 1006public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out TimeOnly result) => TryParse(s, provider, DateTimeStyles.None, out result);
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (13)
431public override bool Equals([NotNullWhen(true)] object? value) => (value is TimeSpan other) && Equals(other); 781public static bool TryParse([NotNullWhen(true)] string? s, out TimeSpan result) 792public static bool TryParse([NotNullWhen(true)] string? input, IFormatProvider? formatProvider, out TimeSpan result) 802public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string? format, IFormatProvider? formatProvider, out TimeSpan result) 815public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result) 824public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result) 827public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string? format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result) 844public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result) 856public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.TimeSpanFormat)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.AdjustmentRule.cs (2)
50public bool Equals([NotNullWhen(true)] AdjustmentRule? other) => 62public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (6)
636public static bool TryFindSystemTimeZoneById(string id, [NotNullWhenAttribute(true)] out TimeZoneInfo? timeZoneInfo) 857public bool Equals([NotNullWhen(true)] TimeZoneInfo? other) => 862public override bool Equals([NotNullWhen(true)] object? obj) => Equals(obj as TimeZoneInfo); 1104public static bool TryConvertIanaIdToWindowsId(string ianaId, [NotNullWhen(true)] out string? windowsId) => TryConvertIanaIdToWindowsId(ianaId, allocate: true, out windowsId); 1112public static bool TryConvertWindowsIdToIanaId(string windowsId, [NotNullWhen(true)] out string? ianaId) => TryConvertWindowsIdToIanaId(windowsId, region: null, allocate: true, out ianaId); 1121public static bool TryConvertWindowsIdToIanaId(string windowsId, string? region, [NotNullWhen(true)] out string? ianaId) => TryConvertWindowsIdToIanaId(windowsId, region, allocate: true, out ianaId);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.TransitionTime.cs (1)
33public override bool Equals([NotNullWhen(true)] object? obj) =>
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (4)
456private static bool TryLoadTzFile(string tzFilePath, [NotNullWhen(true)] ref byte[]? rawData, [NotNullWhen(true)] ref string? id) 519private static bool TryGetLocalTzFile([NotNullWhen(true)] out byte[]? rawData, [NotNullWhen(true)] out string? id)
src\libraries\System.Private.CoreLib\src\System\Tuple.cs (24)
116public override bool Equals([NotNullWhen(true)] object? obj) 121bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 126private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 236public override bool Equals([NotNullWhen(true)] object? obj) 241bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 246private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 361public override bool Equals([NotNullWhen(true)] object? obj) 366bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 371private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 496public override bool Equals([NotNullWhen(true)] object? obj) 501bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 506private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 641public override bool Equals([NotNullWhen(true)] object? obj) 646bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 651private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 796public override bool Equals([NotNullWhen(true)] object? obj) 801bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 806private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 961public override bool Equals([NotNullWhen(true)] object? obj) 966bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 971private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 1141public override bool Equals([NotNullWhen(true)] object? obj) 1146bool IStructuralEquatable.Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer) 1151private bool Equals([NotNullWhen(true)] object? other, IEqualityComparer comparer)
src\libraries\System.Private.CoreLib\src\System\Type.cs (3)
143public bool IsAssignableTo([NotNullWhen(true)] Type? targetType) => targetType?.IsAssignableFrom(this) ?? false; 602public virtual bool IsInstanceOfType([NotNullWhen(true)] object? o) => o == null ? false : IsAssignableFrom(o.GetType()); 603public virtual bool IsEquivalentTo([NotNullWhen(true)] Type? other) => this == other;
src\libraries\System.Private.CoreLib\src\System\Type.Helpers.cs (1)
337public virtual bool IsAssignableFrom([NotNullWhen(true)] Type? c)
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (4)
85public override bool Equals([NotNullWhen(true)] object? obj) 149public static bool TryParse([NotNullWhen(true)] string? s, out UInt128 result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 159public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out UInt128 result) 2002public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out UInt128 result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (4)
71public override bool Equals([NotNullWhen(true)] object? obj) 142public static bool TryParse([NotNullWhen(true)] string? s, out ushort result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 152public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out ushort result) 1130public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out ushort result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (4)
87public override bool Equals([NotNullWhen(true)] object? obj) 158public static bool TryParse([NotNullWhen(true)] string? s, out uint result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 168public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out uint result) 1175public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out uint result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (4)
87public override bool Equals([NotNullWhen(true)] object? obj) 157public static bool TryParse([NotNullWhen(true)] string? s, out ulong result) => TryParse(s, NumberStyles.Integer, provider: null, out result); 167public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out ulong result) 1168public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out ulong result) => TryParse(s, NumberStyles.Integer, provider, out result);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (4)
87public override bool Equals([NotNullWhen(true)] object? obj) => (obj is nuint other) && Equals(other); 221public static bool TryParse([NotNullWhen(true)] string? s, out nuint result) 238public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out nuint result) 261public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out nuint result)
src\libraries\System.Private.CoreLib\src\System\ValueTuple.cs (9)
42public override bool Equals([NotNullWhen(true)] object? obj) 293public override bool Equals([NotNullWhen(true)] object? obj) 465public override bool Equals([NotNullWhen(true)] object? obj) 671public override bool Equals([NotNullWhen(true)] object? obj) 876public override bool Equals([NotNullWhen(true)] object? obj) 1099public override bool Equals([NotNullWhen(true)] object? obj) 1340public override bool Equals([NotNullWhen(true)] object? obj) 1599public override bool Equals([NotNullWhen(true)] object? obj) 1882public override bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Version.cs (7)
138public override bool Equals([NotNullWhen(true)] object? obj) 143public bool Equals([NotNullWhen(true)] Version? obj) 317public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out Version? result) 329public static bool TryParse(ReadOnlySpan<char> input, [NotNullWhen(true)] out Version? result) 344public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out Version? result) 351static bool IUtf8SpanParsable<Version>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out Version? result)
src\libraries\System.Private.CoreLib\src\System\WeakReference.T.cs (1)
59public bool TryGetTarget([MaybeNullWhen(false), NotNullWhen(true)] out T target)
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
201public static bool TryParse(ReadOnlySpan<char> assemblyName, [NotNullWhen(true)] out AssemblyNameInfo? result)
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
398public static bool TryParse(ReadOnlySpan<char> typeName, [NotNullWhen(true)] out TypeName? result, TypeNameParseOptions? options = default)
src\System\Delegate.CoreCLR.cs (1)
88public override bool Equals([NotNullWhen(true)] object? obj)
src\System\MulticastDelegate.CoreCLR.cs (1)
44public sealed override bool Equals([NotNullWhen(true)] object? obj)
src\System\Reflection\Emit\RuntimeEnumBuilder.cs (1)
22public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo)
src\System\Reflection\Emit\RuntimeGenericTypeParameterBuilder.cs (2)
11public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo) 204public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) { throw new NotSupportedException(); }
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (2)
15public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo) 840public override bool IsAssignableFrom([NotNullWhen(true)] Type? c)
src\System\Reflection\Metadata\RuntimeTypeMetadataUpdateHandler.cs (1)
64private static bool RequiresClearingAllTypes([NotNullWhen(false)] Type[]? types)
src\System\Runtime\InteropServices\ComWrappers.cs (1)
64public static bool TryGetObject(IntPtr unknown, [NotNullWhen(true)] out object? obj)
src\System\RuntimeHandles.cs (1)
1744public override bool Equals([NotNullWhen(true)] object? obj)
src\System\RuntimeType.CoreCLR.cs (1)
3292public override unsafe bool IsInstanceOfType([NotNullWhen(true)] object? o)
src\System\ValueType.cs (1)
27public override unsafe bool Equals([NotNullWhen(true)] object? obj)
System.Private.DataContractSerialization (66)
System\Runtime\Serialization\ClassDataContract.cs (1)
163internal bool CreateNewInstanceViaDefaultConstructor([NotNullWhen(true)] out object? obj)
System\Runtime\Serialization\CollectionDataContract.cs (7)
191public override bool IsDictionaryLike([NotNullWhen(true)] out string? keyName, [NotNullWhen(true)] out string? valueName, [NotNullWhen(true)] out string? itemName) 941internal static bool IsCollection(Type type, [NotNullWhen(true)] out Type? itemType) 955private static bool IsCollectionHelper(Type type, [NotNullWhen(true)] out Type? itemType, bool constructorRequired, bool skipIfReadOnlyContract = false) 967internal static bool TryCreate(Type type, [NotNullWhen(true)] out DataContract? dataContract) 974internal static bool TryCreateGetOnlyCollectionDataContract(Type type, [NotNullWhen(true)] out DataContract? dataContract)
System\Runtime\Serialization\DataContract.cs (7)
266public virtual bool IsDictionaryLike([NotNullWhen(true)] out string? keyName, [NotNullWhen(true)] out string? valueName, [NotNullWhen(true)] out string? itemName) 665internal static bool TryCreateBuiltInDataContract(Type type, [NotNullWhen(true)] out DataContract? dataContract) 748internal static bool TryCreateBuiltInDataContract(string name, string ns, [NotNullWhen(true)] out DataContract? dataContract) 1315private static bool TryGetBuiltInXmlAndArrayTypeXmlName(Type type, HashSet<Type> previousCollectionTypes, [NotNullWhen(true)] out XmlQualifiedName? xmlName) 1338internal static bool TryGetDCAttribute(Type type, [NotNullWhen(true)] out DataContractAttribute? dataContractAttribute)
System\Runtime\Serialization\DataContractSet.cs (3)
560internal bool TryGetReferencedType(XmlQualifiedName xmlName, DataContract? dataContract, [NotNullWhen(true)] out Type? type) 567internal bool TryGetReferencedCollectionType(XmlQualifiedName xmlName, DataContract? dataContract, [NotNullWhen(true)] out Type? type) 574private bool TryGetReferencedType(XmlQualifiedName xmlName, DataContract? dataContract, bool useReferencedCollectionTypes, [NotNullWhen(true)] out Type? type)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
211int arrayLength, [NotNullWhen(true)] out DateTime[]? array) 218int arrayLength, [NotNullWhen(true)] out DateTime[]? array)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (1)
289internal static bool TryGetJsonLocalName(XmlReaderDelegator xmlReader, [NotNullWhen(true)] out string? name)
System\Runtime\Serialization\ReflectionReader.cs (1)
626private static bool ReflectionTryReadPrimitiveArray(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context, XmlDictionaryString collectionItemName, XmlDictionaryString collectionItemNamespace, Type itemType, int arraySize, [NotNullWhen(true)] out object? resultArray)
System\Runtime\Serialization\SchemaExporter.cs (2)
747internal static bool IsSpecialXmlType(Type type, [NotNullWhen(true)] out XmlQualifiedName? typeName, [NotNullWhen(true)] out XmlSchemaType? xsdType, out bool hasRoot)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
600private bool ResolveType(Type objectType, Type declaredType, [NotNullWhen(true)] out XmlDictionaryString? typeName, [NotNullWhen(true)] out XmlDictionaryString? typeNamespace)
System\Runtime\Serialization\XmlReaderDelegator.cs (7)
804int arrayLength, [NotNullWhen(true)] out bool[]? array) 834int arrayLength, [NotNullWhen(true)] out DateTime[]? array) 864int arrayLength, [NotNullWhen(true)] out decimal[]? array) 894int arrayLength, [NotNullWhen(true)] out int[]? array) 924int arrayLength, [NotNullWhen(true)] out long[]? array) 954int arrayLength, [NotNullWhen(true)] out float[]? array) 984int arrayLength, [NotNullWhen(true)] out double[]? array)
System\Xml\IXmlDictionary.cs (3)
10bool TryLookup(string value, [NotNullWhen(true)] out XmlDictionaryString? result); 11bool TryLookup(int key, [NotNullWhen(true)] out XmlDictionaryString? result); 12bool TryLookup(XmlDictionaryString value, [NotNullWhen(true)] out XmlDictionaryString? result);
System\Xml\PrefixHandle.cs (2)
182public bool Equals([NotNullWhen(true)] PrefixHandle? prefix2) 239public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\StringHandle.cs (3)
168public bool TryGetDictionaryString([NotNullWhen(true)] out XmlDictionaryString? value) 234public bool Equals([NotNullWhen(true)] StringHandle? other) 285public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\UniqueId.cs (1)
324public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\ValueHandle.cs (1)
818public bool TryGetDictionaryString([NotNullWhen(true)] out XmlDictionaryString? value)
System\Xml\XmlBaseReader.cs (6)
1777public override bool TryGetLocalNameAsDictionaryString([NotNullWhen(true)] out XmlDictionaryString? localName) 1782public override bool TryGetNamespaceUriAsDictionaryString([NotNullWhen(true)] out XmlDictionaryString? localName) 1787public override bool TryGetValueAsDictionaryString([NotNullWhen(true)] out XmlDictionaryString? value) 2289public bool TryGetLocalNameAsDictionaryString([NotNullWhen(true)] out XmlDictionaryString? localName) 2303public bool TryGetNamespaceUriAsDictionaryString([NotNullWhen(true)] out XmlDictionaryString? ns) 2317public bool TryGetValueAsDictionaryString([NotNullWhen(true)] out XmlDictionaryString? value)
System\Xml\XmlBinaryReader.cs (1)
1158public override bool IsStartArray([NotNullWhen(true)] out Type? type)
System\Xml\XmlBinaryReaderSession.cs (3)
56public bool TryLookup(int key, [NotNullWhen(true)] out XmlDictionaryString? result) 72public bool TryLookup(string value, [NotNullWhen(true)] out XmlDictionaryString? result) 105public bool TryLookup(XmlDictionaryString value, [NotNullWhen(true)] out XmlDictionaryString? result)
System\Xml\XmlDictionary.cs (6)
63public virtual bool TryLookup(string value, [NotNullWhen(true)] out XmlDictionaryString? result) 68public virtual bool TryLookup(int key, [NotNullWhen(true)] out XmlDictionaryString? result) 79public virtual bool TryLookup(XmlDictionaryString value, [NotNullWhen(true)] out XmlDictionaryString? result) 94public bool TryLookup(string value, [NotNullWhen(true)] out XmlDictionaryString? result) 100public bool TryLookup(int key, [NotNullWhen(true)] out XmlDictionaryString? result) 106public bool TryLookup(XmlDictionaryString value, [NotNullWhen(true)] out XmlDictionaryString? result)
System\Xml\XmlDictionaryReader.cs (4)
987public virtual bool TryGetLocalNameAsDictionaryString([NotNullWhen(true)] out XmlDictionaryString? localName) 993public virtual bool TryGetNamespaceUriAsDictionaryString([NotNullWhen(true)] out XmlDictionaryString? namespaceUri) 999public virtual bool TryGetValueAsDictionaryString([NotNullWhen(true)] out XmlDictionaryString? value) 1017public virtual bool IsStartArray([NotNullWhen(true)] out Type? type)
System\Xml\XmlDictionaryString.cs (3)
103public bool TryLookup(string value, [NotNullWhen(true)] out XmlDictionaryString? result) 116public bool TryLookup(int key, [NotNullWhen(true)] out XmlDictionaryString? result) 127public bool TryLookup(XmlDictionaryString value, [NotNullWhen(true)] out XmlDictionaryString? result)
System.Private.Uri (11)
System\Uri.cs (3)
1474public static bool CheckSchemeName([NotNullWhen(true)] string? schemeName) => 1678public override bool Equals([NotNullWhen(true)] object? comparand) 1718public bool Equals([NotNullWhen(true)] Uri? other)
System\UriBuilder.cs (1)
253public override bool Equals([NotNullWhen(true)] object? rparam) => rparam is not null && Uri.Equals(rparam.ToString());
System\UriExt.cs (7)
270public static bool TryCreate([NotNullWhen(true), StringSyntax(StringSyntaxAttribute.Uri, "uriKind")] string? uriString, UriKind uriKind, [NotNullWhen(true)] out Uri? result) 290public static bool TryCreate([NotNullWhen(true), StringSyntax(StringSyntaxAttribute.Uri)] string? uriString, in UriCreationOptions creationOptions, [NotNullWhen(true)] out Uri? result) 303public static bool TryCreate(Uri? baseUri, string? relativeUri, [NotNullWhen(true)] out Uri? result) 317public static bool TryCreate(Uri? baseUri, Uri? relativeUri, [NotNullWhen(true)] out Uri? result) 421public static bool IsWellFormedUriString([NotNullWhen(true), StringSyntax(StringSyntaxAttribute.Uri, "uriKind")] string? uriString, UriKind uriKind)
System.Private.Windows.Core (71)
System\Private\Windows\Count.cs (1)
29public override bool Equals([NotNullWhen(true)] object? obj)
System\Private\Windows\Id.cs (1)
33public override bool Equals([NotNullWhen(true)] object? obj)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (2)
95public static bool TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value) => 100public static bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type)
System\Private\Windows\Nrbf\INrbfSerializer.cs (2)
19static abstract bool TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value); 24static abstract bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (30)
63internal delegate bool TryGetDelegate(SerializationRecord record, [NotNullWhen(true)] out object? value); 65internal static bool TryGet(TryGetDelegate get, SerializationRecord record, [NotNullWhen(true)] out object? value) 83public static bool TryGetPoint(this SerializationRecord record, [NotNullWhen(true)] out object? value) 87static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 108public static bool TryGetSize(this SerializationRecord record, [NotNullWhen(true)] out object? value) 112static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 133public static bool TryGetRectangle(this SerializationRecord record, [NotNullWhen(true)] out object? value) 137static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 164public static bool TryGetPointF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 168static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 189public static bool TryGetSizeF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 193static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 214public static bool TryGetRectangleF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 218static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 245public static bool TryGetColor(this SerializationRecord record, [NotNullWhen(true)] out object? value) 249static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 284public static bool TryGetPrimitiveType(this SerializationRecord record, [NotNullWhen(true)] out object? value) 288static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 315public static bool TryGetPrimitiveList(this SerializationRecord record, [NotNullWhen(true)] out object? list) 319static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? list) 365public static bool TryGetPrimitiveArrayList(this SerializationRecord record, [NotNullWhen(true)] out object? value) 369static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 412public static bool TryGetPrimitiveArray(this SerializationRecord record, [NotNullWhen(true)] out object? value) 416static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 452public static bool TryGetPrimitiveHashtable(this SerializationRecord record, [NotNullWhen(true)] out Hashtable? hashtable) 462public static bool TryGetPrimitiveHashtable(this SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 466static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 526static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? exception) 546[NotNullWhen(true)] out object? value) 562[NotNullWhen(true)] out object? value) =>
System\Private\Windows\Ole\Composition.cs (4)
88[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 94[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 99[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 103[NotNullWhen(true), MaybeNullWhen(false)] out T data) =>
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (8)
251[NotNullWhen(true)] out T? data) 285[NotNullWhen(true)] out T? data) 345[NotNullWhen(true)] out T? data) 427[NotNullWhen(true)] out T? data) 588[NotNullWhen(true), MaybeNullWhen(false)] out T data) 603[NotNullWhen(true), MaybeNullWhen(false)] out T data) 615[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 619[NotNullWhen(true), MaybeNullWhen(false)] out T data) =>
System\Private\Windows\Ole\DataFormatsCore.cs (2)
53[NotNullWhen(true)] out T? format) 116[NotNullWhen(true)] out T? format)
System\Private\Windows\Ole\DataStore.cs (6)
17[NotNullWhen(true), MaybeNullWhen(false)] out T data) 49bool TryGetData(string format, ref bool autoConvert, [NotNullWhen(true)] out T? data) 182[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 188[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 193[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 197[NotNullWhen(true), MaybeNullWhen(false)] out T data) =>
System\Private\Windows\Ole\IDataObjectInternal.cs (4)
97[NotNullWhen(true), MaybeNullWhen(false)] out T data); 105[NotNullWhen(true), MaybeNullWhen(false)] out T data); 115[NotNullWhen(true), MaybeNullWhen(false)] out T data); 152[NotNullWhen(true), MaybeNullWhen(false)] out T data);
System\Private\Windows\Ole\IOleServices.cs (1)
29[NotNullWhen(true)] out T data);
System\Private\Windows\Runtime.cs (3)
27static bool IOleServices.TryGetBitmapFromDataObject<T>(IDataObject* dataObject, [NotNullWhen(true)] out T data) => 34static bool INrbfSerializer.TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type) => 36static bool INrbfSerializer.TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value) =>
System\TypeExtensions.cs (1)
22public static bool TryGetForwardedFromName(this Type type, [NotNullWhen(true)] out string? name)
Windows\Win32\Foundation\HandleRef.cs (1)
45public override bool Equals([NotNullWhen(true)] object? obj) => obj is THandle other && Equals(other);
Windows\Win32\System\Com\ComHelpers.cs (5)
137[NotNullWhen(true)] out TWrapper? @interface) where TWrapper : class 159[NotNullWhen(true)] out TObject? @object) 166[NotNullWhen(true)] out TObject? @object) 196[NotNullWhen(true)] out TObject? @object) where TObject : class => 208[NotNullWhen(true)] out TObject? @object) where TObject : class
System.Private.Xml (35)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
102public override bool Equals([NotNullWhen(true)] object? other) =>
System\Xml\Cache\XPathDocumentNavigator.cs (1)
814public override bool IsDescendant([NotNullWhen(true)] XPathNavigator? other)
System\Xml\Cache\XPathNodeInfoAtom.cs (1)
284public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Dom\DocumentXPathNavigator.cs (4)
1226public override bool IsDescendant([NotNullWhen(true)] XPathNavigator? other) 1850private static bool ResetAttributePosition(XmlAttribute attribute, [NotNullWhen(true)] XmlAttributeCollection? attributes, out int index) 1867private static bool CheckAttributePosition(XmlAttribute attribute, [NotNullWhen(true)] out XmlAttributeCollection? attributes, int index) 2055internal static bool IsFollowingSibling(XmlNode left, [NotNullWhen(true)] XmlNode? right)
System\Xml\Schema\BitSet.cs (1)
152public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Schema\Chameleonkey.cs (1)
53public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Schema\ConstraintStruct.cs (1)
489public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Schema\Parser.cs (1)
97private bool CheckSchemaRoot(SchemaType rootType, [NotNullWhen(false)] out string? code)
System\Xml\Schema\XmlSchemaSet.cs (1)
1277internal bool GetSchemaByUri(Uri schemaUri, [NotNullWhen(true)] out XmlSchema? schema)
System\Xml\Schema\XmlSchemaType.cs (2)
277public static bool IsDerivedFrom([NotNullWhen(true)] XmlSchemaType? derivedType, [NotNullWhen(true)] XmlSchemaType? baseType, XmlSchemaDerivationMethod except)
System\Xml\Serialization\CodeGenerator.cs (3)
180internal bool TryGetVariable(string name, [NotNullWhen(true)] out object? variable) 217private bool TryDequeueLocal(Type type, string name, [NotNullWhen(true)] out LocalBuilder? local) 1548public bool TryGetValue(string key, [NotNullWhen(true)] out LocalBuilder? value)
System\Xml\Serialization\Compilation.cs (1)
676public override bool Equals([NotNullWhen(true)] object? o)
System\Xml\Serialization\NameTable.cs (1)
23public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Serialization\SourceInfo.cs (1)
257public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Serialization\XmlSerializationReader.cs (1)
1416protected bool ReadReference([NotNullWhen(true)] out string? fixupReference)
System\Xml\Serialization\XmlSerializer.cs (1)
1029public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\XmlNamespacemanager.cs (1)
358internal bool GetNamespaceDeclaration(int idx, [NotNullWhen(true)] out string? prefix, out string? uri)
System\Xml\XmlQualifiedName.cs (1)
74public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\XPath\XPathNavigator.cs (1)
908public virtual bool IsDescendant([NotNullWhen(true)] XPathNavigator? nav)
System\Xml\Xsl\Pair.cs (1)
21public override bool Equals([NotNullWhen(true)] object? other) =>
System\Xml\Xsl\QIL\QilName.cs (1)
95public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Xsl\Runtime\EarlyBoundInfo.cs (1)
53public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Xsl\Runtime\WhitespaceRuleLookup.cs (1)
171public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Xsl\Runtime\XmlCollation.cs (1)
345public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
305public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Xsl\XmlQueryCardinality.cs (1)
123public override bool Equals([NotNullWhen(true)] object? other)
System\Xml\Xsl\XmlQueryType.cs (2)
171public bool Equals([NotNullWhen(true)] XmlQueryType? that) 322public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Xsl\Xslt\CompilerScopeManager.cs (1)
101public bool EnterScope([NotNullWhen(true)] NsDecl? nsDecl)
System.Private.Xml.Linq (2)
System\Xml\Linq\XName.cs (1)
120public override bool Equals([NotNullWhen(true)] object? obj)
System\Xml\Linq\XNamespace.cs (1)
159public override bool Equals([NotNullWhen(true)] object? obj)
System.Reflection.Context (19)
System\Reflection\Context\Custom\CustomType.cs (1)
41public override bool IsInstanceOfType([NotNullWhen(true)] object? o)
System\Reflection\Context\Delegation\DelegatingType.cs (3)
250public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) 270public override bool IsEquivalentTo([NotNullWhen(true)] Type? other) 275public override bool IsInstanceOfType([NotNullWhen(true)] object? o)
System\Reflection\Context\Projection\ProjectingAssembly.cs (1)
104public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Projection\ProjectingEventInfo.cs (1)
82public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Projection\ProjectingFieldInfo.cs (1)
73public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Projection\ProjectingMethodInfo.cs (1)
123public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Projection\ProjectingModule.cs (1)
111public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Projection\ProjectingParameterInfo.cs (1)
63public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Projection\ProjectingPropertyInfo.cs (1)
93public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Projection\ProjectingType.cs (4)
138public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) 154public override bool IsEquivalentTo([NotNullWhen(true)] Type? other) 163public override bool IsInstanceOfType([NotNullWhen(true)] object? o) 323public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Projection\Projector.cs (1)
105public bool NeedsProjection([NotNullWhen(true)] object? value)
System\Reflection\Context\Virtual\InheritedMethodInfo.cs (1)
36public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Virtual\InheritedPropertyInfo.cs (1)
54public override bool Equals([NotNullWhen(true)] object? o)
System\Reflection\Context\Virtual\VirtualParameter.cs (1)
49public override bool Equals([NotNullWhen(true)] object? obj)
System.Reflection.Emit (3)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\SymbolType.cs (1)
36public override bool IsAssignableFrom([NotNullWhen(true)] TypeInfo? typeInfo)
System\Reflection\Emit\EnumBuilderImpl.cs (1)
146public override bool IsAssignableFrom([NotNullWhen(true)] Type? c) => throw new NotSupportedException();
System\Reflection\Emit\TypeBuilderImpl.cs (1)
1385public override bool IsAssignableFrom([NotNullWhen(true)] Type? c)
System.Reflection.Metadata (20)
System\Reflection\Internal\MemoryBlocks\MemoryBlockProvider.cs (2)
50public virtual bool TryGetUnderlyingStream([NotNullWhen(true)] out Stream? stream, out long imageStart, out int imageSize, [NotNullWhen(true)] out object? streamGuard)
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (2)
91public override bool TryGetUnderlyingStream([NotNullWhen(true)] out Stream? stream, out long imageStart, out int imageSize, [NotNullWhen(true)] out object? streamGuard)
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
201public static bool TryParse(ReadOnlySpan<char> assemblyName, [NotNullWhen(true)] out AssemblyNameInfo? result)
System\Reflection\Metadata\BlobContentId.cs (1)
127public override bool Equals([NotNullWhen(true)] object? obj) => obj is BlobContentId bcid && Equals(bcid);
System\Reflection\Metadata\Ecma335\EditAndContinueLogEntry.cs (1)
19public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Reflection\Metadata\Ecma335\Encoding\LabelHandle.cs (1)
25public override bool Equals([NotNullWhen(true)] object? obj) => obj is LabelHandle labelHandle && Equals(labelHandle);
System\Reflection\Metadata\EntityHandle.cs (1)
98public override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\Metadata\Handle.cs (1)
163public override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\Metadata\PortablePdb\DocumentNameBlobHandle.cs (1)
57public override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (3)
416public override bool Equals([NotNullWhen(true)] object? obj) 499public override bool Equals([NotNullWhen(true)] object? obj) 582public override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\Metadata\PortablePdb\SequencePoint.cs (1)
51public override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\Metadata\Signatures\SignatureHeader.cs (1)
89public override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\Metadata\TypeName.cs (1)
398public static bool TryParse(ReadOnlySpan<char> typeName, [NotNullWhen(true)] out TypeName? result, TypeNameParseOptions? options = default)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
2522public override bool Equals([NotNullWhen(true)] object? obj) 2653public override bool Equals([NotNullWhen(true)] object? obj) 2721public override bool Equals([NotNullWhen(true)] object? obj)
System.Reflection.MetadataLoadContext (17)
System\Reflection\TypeLoading\Constructors\RoDefinitionConstructor.cs (1)
38public sealed override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\TypeLoading\Constructors\RoSyntheticConstructor.cs (1)
66public sealed override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\TypeLoading\Events\Ecma\EcmaEvent.cs (1)
40public sealed override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\TypeLoading\Fields\Ecma\EcmaField.cs (1)
42public sealed override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
69public sealed override bool Equals([NotNullWhen(true)] object? obj) => obj is RoAssemblyName other && Equals(other);
System\Reflection\TypeLoading\Methods\RoConstructedGenericMethod.cs (1)
54public sealed override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\TypeLoading\Methods\RoDefinitionMethod.cs (1)
77public sealed override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\TypeLoading\Methods\RoSyntheticMethod.cs (1)
68public sealed override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\TypeLoading\Modules\GetTypeCoreCache.cs (2)
21public bool TryGet(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, [NotNullWhen(true)] out RoDefinitionType? type) 79public bool TryGetValue(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, int hashCode, [NotNullWhen(true)] out RoDefinitionType? value)
System\Reflection\TypeLoading\Properties\Ecma\EcmaProperty.cs (1)
39public sealed override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\TypeLoading\Types\RoArrayType.Key.cs (1)
36public override bool Equals([NotNullWhen(true)] object? obj) => obj is Key other && Equals(other);
System\Reflection\TypeLoading\Types\RoConstructedGenericType.Key.cs (1)
49public override bool Equals([NotNullWhen(true)] object? obj) => obj is Key other && Equals(other);
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (2)
109public sealed override bool Equals([NotNullWhen(true)] Type? type) => Equals((object?)type); 110public sealed override bool Equals([NotNullWhen(true)] object? obj)
System\Reflection\TypeLoading\Types\RoModifiedType.cs (1)
115public override bool Equals([NotNullWhen(true)] object? obj) => throw new NotSupportedException(SR.NotSupported_ModifiedType);
System\Reflection\TypeLoading\Types\RoType.cs (1)
23public override bool Equals([NotNullWhen(true)] object? obj)
System.Reflection.TypeExtensions (2)
System\Reflection\TypeExtensions.cs (2)
341public static bool IsAssignableFrom(this Type type, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] Type? c) 349public static bool IsInstanceOfType(this Type type, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object? o)
System.Runtime.Numerics (8)
System\Number.BigInteger.cs (1)
40internal static bool TryValidateParseStyleInteger(NumberStyles style, [NotNullWhen(false)] out ArgumentException? e)
System\Numerics\BigInteger.cs (4)
686public static bool TryParse([NotNullWhen(true)] string? value, out BigInteger result) 691public static bool TryParse([NotNullWhen(true)] string? value, NumberStyles style, IFormatProvider? provider, out BigInteger result) 1097public override bool Equals([NotNullWhen(true)] object? obj) 5218public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out BigInteger result) => TryParse(s, NumberStyles.Integer, provider, out result);
System\Numerics\Complex.cs (3)
347public override bool Equals([NotNullWhen(true)] object? obj) 2168public static bool TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out Complex result) 2186public static bool TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, out Complex result) => TryParse(s, DefaultNumberStyle, provider, out result);
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\MemberHolder.cs (1)
24public override bool Equals([NotNullWhen(true)] object? obj)
System\Runtime\Serialization\ObjectManager.cs (1)
131private bool GetCompletionInfo(FixupHolder fixup, [NotNullWhen(true)] out ObjectHolder? holder, out object member, bool bThrowIfMissing)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
647private bool TryGetReferencedDictionaryType(DataContract collectionContract, [NotNullWhen(true)] out CodeTypeReference? typeReference)
System.Security.AccessControl (1)
artifacts\obj\System.Security.AccessControl\Debug\net10.0\System.Security.AccessControl.notsupported.cs (1)
273public sealed override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }
System.Security.Claims (1)
System\Security\Claims\GenericPrincipal.cs (1)
70public override bool IsInRole([NotNullWhen(true)] string? role)
System.Security.Cryptography (31)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
429public override bool Equals([NotNullWhen(true)] object? obj) => obj is X509VerifyStatusCode other && Equals(other);
System\Security\Cryptography\CngAlgorithm.cs (2)
55public override bool Equals([NotNullWhen(true)] object? obj) 62public bool Equals([NotNullWhen(true)] CngAlgorithm? other)
System\Security\Cryptography\CngAlgorithmGroup.cs (2)
56public override bool Equals([NotNullWhen(true)] object? obj) 63public bool Equals([NotNullWhen(true)] CngAlgorithmGroup? other)
System\Security\Cryptography\CngKeyBlobFormat.cs (2)
56public override bool Equals([NotNullWhen(true)] object? obj) 63public bool Equals([NotNullWhen(true)] CngKeyBlobFormat? other)
System\Security\Cryptography\CngProperty.cs (1)
57public override bool Equals([NotNullWhen(true)] object? obj)
System\Security\Cryptography\CngProvider.cs (2)
53public override bool Equals([NotNullWhen(true)] object? obj) 60public bool Equals([NotNullWhen(true)] CngProvider? other)
System\Security\Cryptography\HashAlgorithmName.cs (1)
98public override bool Equals([NotNullWhen(true)] object? obj)
System\Security\Cryptography\RSAEncryptionPadding.cs (2)
103public override bool Equals([NotNullWhen(true)] object? obj) 108public bool Equals([NotNullWhen(true)] RSAEncryptionPadding? other)
System\Security\Cryptography\RSASignaturePadding.cs (2)
57public override bool Equals([NotNullWhen(true)] object? obj) 62public bool Equals([NotNullWhen(true)] RSASignaturePadding? other)
System\Security\Cryptography\X509Certificates\OpenSslPkcsFormatReader.cs (9)
88internal static bool TryReadPkcs7Der(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 93internal static bool TryReadPkcs7Der(SafeBioHandle bio, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 102[NotNullWhen(true)] out List<ICertificatePal>? certPals) 122[NotNullWhen(true)] out List<ICertificatePal>? certPals) 148internal static bool TryReadPkcs7Pem(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 153internal static bool TryReadPkcs7Pem(SafeBioHandle bio, [NotNullWhen(true)] out List<ICertificatePal>? certPals) 162[NotNullWhen(true)] out List<ICertificatePal>? certPals) 181[NotNullWhen(true)] out List<ICertificatePal>? certPals) 201[NotNullWhen(true)] out List<ICertificatePal> certPals)
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (5)
155internal static bool TryReadX509Der(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out ICertificatePal? certPal) 173internal static bool TryReadX509Pem(SafeBioHandle bio, [NotNullWhen(true)] out ICertificatePal? certPal) 189internal static bool TryReadX509PemNoAux(SafeBioHandle bio, [NotNullWhen(true)] out ICertificatePal? certPal) 205internal static bool TryReadX509Pem(ReadOnlySpan<byte> rawData, [NotNullWhen(true)] out ICertificatePal? certPal) 220internal static bool TryReadX509Der(SafeBioHandle bio, [NotNullWhen(true)] out ICertificatePal? fromBio)
System\Security\Cryptography\X509Certificates\X509Certificate.cs (2)
297public override bool Equals([NotNullWhen(true)] object? obj) => obj is X509Certificate other && Equals(other); 299public virtual bool Equals([NotNullWhen(true)] X509Certificate? other)
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseHeaderLabel.cs (1)
87public override bool Equals([NotNullWhen(true)] object? obj) => obj is CoseHeaderLabel otherObj && Equals(otherObj);
System\Security\Cryptography\Cose\CoseHeaderValue.cs (1)
248public override bool Equals([NotNullWhen(true)] object? obj) => obj is CoseHeaderValue otherObj && Equals(otherObj);
System.Security.Cryptography.Pkcs (21)
Internal\Cryptography\PkcsHelpers.cs (2)
389[NotNullWhen(true)] out RSAEncryptionPadding? rsaEncryptionPadding, 390[NotNullWhen(false)] out Exception? exception)
System\Security\Cryptography\Pkcs\CmsSignature.cs (2)
55[NotNullWhen(true)] out string? signatureAlgorithm, 56[NotNullWhen(true)] out byte[]? signatureValue,
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (2)
113[NotNullWhen(true)] out string? signatureAlgorithm, 114[NotNullWhen(true)] out byte[]? signatureValue,
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (2)
117[NotNullWhen(true)] out string? signatureAlgorithm, 118[NotNullWhen(true)] out byte[]? signatureValue,
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (5)
110[NotNullWhen(true)] out byte[]? signatureValue) 209[NotNullWhen(true)] out string? signatureAlgorithm, 210[NotNullWhen(true)] out byte[]? signatureValue, 329[NotNullWhen(true)] out string? signatureAlgorithm, 330[NotNullWhen(true)] out byte[]? signatureValue,
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (2)
75[NotNullWhen(true)] out Rfc3161TimestampToken? token, 346[NotNullWhen(true)] out Rfc3161TimestampRequest? request,
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (5)
76[NotNullWhen(true)] out X509Certificate2? signerCertificate, 100[NotNullWhen(true)] out X509Certificate2? signerCertificate, 124[NotNullWhen(true)] out X509Certificate2? signerCertificate, 156[NotNullWhen(true)] out X509Certificate2? signerCertificate, 296public static bool TryDecode(ReadOnlyMemory<byte> encodedBytes, [NotNullWhen(true)] out Rfc3161TimestampToken? token, out int bytesConsumed)
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
235[NotNullWhen(true)] out Rfc3161TimestampTokenInfo? timestampTokenInfo,
System.Security.Principal.Windows (2)
artifacts\obj\System.Security.Principal.Windows\Debug\net10.0\System.Security.Principal.Windows.notsupported.cs (2)
64public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } 84public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? o) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); }
System.ServiceProcess.ServiceController (1)
artifacts\obj\System.ServiceProcess.ServiceController\Debug\net10.0\System.ServiceProcess.ServiceController.notsupported.cs (1)
134public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? obj) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_ServiceController); }
System.Text.Encoding.CodePages (2)
System\Text\DecoderBestFitFallback.cs (1)
35public override bool Equals([NotNullWhen(true)] object? value) =>
System\Text\EncoderBestFitFallback.cs (1)
35public override bool Equals([NotNullWhen(true)] object? value) =>
System.Text.Json (27)
System\Text\Json\Document\JsonDocument.cs (1)
398internal bool TryGetValue(int index, [NotNullWhen(true)] out byte[]? value)
System\Text\Json\Document\JsonDocument.Parse.cs (2)
378public static bool TryParseValue(ref Utf8JsonReader reader, [NotNullWhen(true)] out JsonDocument? document) 429[NotNullWhen(true)] out JsonDocument? document,
System\Text\Json\Document\JsonElement.cs (1)
406public bool TryGetBytesFromBase64([NotNullWhen(true)] out byte[]? value)
System\Text\Json\Document\JsonElement.Parse.cs (1)
112public static bool TryParseValue(ref Utf8JsonReader reader, [NotNullWhen(true)] out JsonElement? element)
System\Text\Json\JsonEncodedText.cs (1)
165public override bool Equals([NotNullWhen(true)] object? obj)
System\Text\Json\Nodes\JsonValue.cs (1)
36public abstract bool TryGetValue<T>([NotNullWhen(true)] out T? value);
System\Text\Json\Nodes\JsonValueOfElement.cs (1)
50public override bool TryGetValue<TypeToConvert>([NotNullWhen(true)] out TypeToConvert value)
System\Text\Json\Nodes\JsonValueOfT.cs (1)
38public override bool TryGetValue<T>([NotNullWhen(true)] out T value)
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (3)
14public static bool TryGetUnescapedBase64Bytes(ReadOnlySpan<byte> utf8Source, [NotNullWhen(true)] out byte[]? bytes) 206public static bool TryDecodeBase64InPlace(Span<byte> utf8Unescaped, [NotNullWhen(true)] out byte[]? bytes) 218public static bool TryDecodeBase64(ReadOnlySpan<byte> utf8Unescaped, [NotNullWhen(true)] out byte[]? bytes)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
827public bool TryGetBytesFromBase64([NotNullWhen(true)] out byte[]? value)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
436public bool TryGetExistingJsonPointer(in JsonSchemaExporterContext context, [NotNullWhen(true)] out string? existingJsonPointer)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
602[NotNullWhen(true)] out JsonParameterInfo? jsonParameterInfo)
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (2)
353[NotNullWhen(true)] out object? referenceValue) 417[NotNullWhen(true)] out object? referenceValue)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (5)
83public bool TryGetTypeInfo(Type type, [NotNullWhen(true)] out JsonTypeInfo? typeInfo) 138internal bool TryGetTypeInfoCached(Type type, [NotNullWhen(true)] out JsonTypeInfo? typeInfo) 165internal bool TryGetPolymorphicTypeInfoForRootType(object rootValue, [NotNullWhen(true)] out JsonTypeInfo? polymorphicTypeInfo) 243public bool TryGetTypeInfo(Type type, [NotNullWhen(true)] out JsonTypeInfo? typeInfo) 455[NotNullWhen(true)] out CachingContext? result)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (1)
120internal static bool TryGetDefaultSimpleConverter(Type typeToConvert, [NotNullWhen(true)] out JsonConverter? converter)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1077public override bool Equals([NotNullWhen(true)] object? obj) => obj is ParameterLookupKey key && Equals(key);
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (2)
119public bool TryGetDerivedJsonTypeInfo(Type runtimeType, [NotNullWhen(true)] out JsonTypeInfo? jsonTypeInfo, out object? typeDiscriminator) 163public bool TryGetDerivedJsonTypeInfo(object typeDiscriminator, [NotNullWhen(true)] out JsonTypeInfo? jsonTypeInfo)
System\Text\Json\Serialization\ReferenceEqualsWrapper.cs (1)
15public override bool Equals([NotNullWhen(true)] object? obj) => obj is ReferenceEqualsWrapper otherObj && Equals(otherObj);
System.Text.RegularExpressions (13)
System\Text\RegularExpressions\GroupCollection.cs (1)
197public bool TryGetValue(string key, [NotNullWhen(true)] out Group? value)
System\Text\RegularExpressions\Regex.Cache.cs (1)
295public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Text\RegularExpressions\RegexCharClass.cs (2)
972public static bool IsUnicodeCategoryOfSmallCharCount(string set, [NotNullWhen(true)] out char[]? chars, out bool negated, [NotNullWhen(true)] out string? description)
System\Text\RegularExpressions\RegexNode.cs (2)
2514public bool TryGetOrdinalCaseInsensitiveString(int childIndex, int exclusiveChildBound, out int nodesConsumed, [NotNullWhen(true)] out string? caseInsensitiveString, bool consumeZeroWidthNodes = false) 2787internal bool SupportsCompilation([NotNullWhen(false)] out string? reason)
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
443public bool IsEssentiallyBoolean([NotNullWhen(true)] out BDD? terminalActingAsTrue)
System\Text\RegularExpressions\Symbolic\BitVector.cs (1)
186public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (1)
87public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (1)
358private bool TryCreateNewTransition(MatchingState<TSet> sourceState, int mintermId, int offset, bool checkThreshold, long timeoutOccursAt, [NotNullWhen(true)] out MatchingState<TSet>? nextState)
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (3)
709static bool TrySkipPrefix(SymbolicRegexNode<TSet> node, SymbolicRegexNode<TSet> prefix, [NotNullWhen(true)] out SymbolicRegexNode<TSet>? tail) 771private static bool TryFoldAlternation(SymbolicRegexBuilder<TSet> builder, SymbolicRegexNode<TSet> left, SymbolicRegexNode<TSet> right, [NotNullWhen(true)] out SymbolicRegexNode<TSet>? result, 838[NotNullWhen(true)] out SymbolicRegexNode<TSet>? prefix)
System.Threading (1)
System\Threading\LockCookie.cs (1)
22public override bool Equals([NotNullWhen(true)] object? obj) =>
System.Threading.AccessControl (3)
artifacts\obj\System.Threading.AccessControl\Debug\net10.0\System.Threading.AccessControl.Extensions.notsupported.cs (3)
13public static bool TryOpenExisting(string name, System.Security.AccessControl.EventWaitHandleRights rights, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Threading.EventWaitHandle? result) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 19public static bool TryOpenExisting(string name, System.Security.AccessControl.MutexRights rights, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Threading.Mutex? result) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } 25public static bool TryOpenExisting(string name, System.Security.AccessControl.SemaphoreRights rights, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Threading.Semaphore? result) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
194private bool TryLeaseUnsynchronized(int permitCount, [NotNullWhen(true)] out RateLimitLease? lease)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
221private bool TryLeaseUnsynchronized(int permitCount, [NotNullWhen(true)] out RateLimitLease? lease)
System\Threading\RateLimiting\MetadataName.T.cs (1)
43public override bool Equals([NotNullWhen(true)] object? obj)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
224private bool TryLeaseUnsynchronized(int permitCount, [NotNullWhen(true)] out RateLimitLease? lease)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
228private bool TryLeaseUnsynchronized(int tokenCount, [NotNullWhen(true)] out RateLimitLease? lease)
System.Threading.Tasks.Dataflow (21)
Base\DataflowBlock.cs (2)
1617public bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items) 1950[NotNullWhen(true)] out Task<int>? task)
Base\DataflowMessageHeader.cs (1)
60public override bool Equals([NotNullWhen(true)] object? obj)
Base\IReceivableSourceBlock.cs (1)
30bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items);
Blocks\BatchBlock.cs (2)
130public bool TryReceive(Predicate<T[]>? filter, [NotNullWhen(true)] out T[]? item) 136public bool TryReceiveAll([NotNullWhen(true)] out IList<T[]>? items) { return _source.TryReceiveAll(out items); }
Blocks\BatchedJoinBlock.cs (4)
132public bool TryReceive(Predicate<Tuple<IList<T1>, IList<T2>>>? filter, [NotNullWhen(true)] out Tuple<IList<T1>, IList<T2>>? item) 138public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<IList<T1>, IList<T2>>>? items) { return _source.TryReceiveAll(out items); } 387public bool TryReceive(Predicate<Tuple<IList<T1>, IList<T2>, IList<T3>>>? filter, [NotNullWhen(true)] out Tuple<IList<T1>, IList<T2>, IList<T3>>? item) 393public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<IList<T1>, IList<T2>, IList<T3>>>? items) { return _source.TryReceiveAll(out items); }
Blocks\BroadcastBlock.cs (2)
160bool IReceivableSourceBlock<T>.TryReceiveAll([NotNullWhen(true)] out IList<T>? items) { return _source.TryReceiveAll(out items); } 599internal bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items)
Blocks\BufferBlock.cs (1)
195public bool TryReceiveAll([NotNullWhen(true)] out IList<T>? items) { return _source.TryReceiveAll(out items); }
Blocks\JoinBlock.cs (4)
119public bool TryReceive(Predicate<Tuple<T1, T2>>? filter, [NotNullWhen(true)] out Tuple<T1, T2>? item) 125public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<T1, T2>>? items) { return _source.TryReceiveAll(out items); } 344public bool TryReceive(Predicate<Tuple<T1, T2, T3>>? filter, [NotNullWhen(true)] out Tuple<T1, T2, T3>? item) 350public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<T1, T2, T3>>? items) { return _source.TryReceiveAll(out items); }
Blocks\TransformBlock.cs (1)
359public bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items) { return _source.TryReceiveAll(out items); }
Blocks\TransformManyBlock.cs (1)
565public bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items) { return _source.TryReceiveAll(out items); }
Blocks\WriteOnceBlock.cs (1)
284bool IReceivableSourceBlock<T>.TryReceiveAll([NotNullWhen(true)] out IList<T>? items)
Internal\SourceCore.cs (1)
328internal bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items)
System.Transactions.Local (5)
System\Transactions\EnlistmentTraceIdentifier.cs (1)
51public override bool Equals([NotNullWhen(true)] object? obj) => obj is EnlistmentTraceIdentifier enlistmentTraceId && Equals(enlistmentTraceId);
System\Transactions\Transaction.cs (2)
317public override bool Equals([NotNullWhen(true)] object? obj) 1097public static bool TryGetCurrentData([NotNullWhen(true)] out ContextData? currentData)
System\Transactions\TransactionOptions.cs (1)
27public override bool Equals([NotNullWhen(true)] object? obj) => obj is TransactionOptions transactionOptions && Equals(transactionOptions);
System\Transactions\TransactionTraceIdentifier.cs (1)
38public override bool Equals([NotNullWhen(true)] object? obj) => obj is TransactionTraceIdentifier transactionTraceId && Equals(transactionTraceId);
System.Web.HttpUtility (2)
System\Web\Util\HttpEncoder.cs (1)
596private static bool ValidateUrlEncodingParameters([NotNullWhen(true)] byte[]? bytes, int offset, int count)
System\Web\Util\UriUtil.cs (1)
13internal static bool TrySplitUriForPathEncode(string input, out ReadOnlySpan<char> schemeAndAuthority, [NotNullWhen(true)] out string? path, out ReadOnlySpan<char> queryAndFragment)
System.Windows.Forms (43)
System\IComparerHelpers.cs (3)
8public static bool CompareReturnIfNull<T>([NotNullWhen(false)] T x, [NotNullWhen(false)] T y, [NotNullWhen(true)] out int? compareReturnValue)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
42[NotNullWhen(true)] out string? displayString)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
18[NotNullWhen(true)] ref string? builderGuid,
System\Windows\Forms\Control.Annotated.cs (1)
28[NotNullWhen(true)] out T? service)
System\Windows\Forms\Control.cs (3)
4402public bool Contains([NotNullWhen(true)] Control? ctl) 9362private protected bool TryGetAccessibilityObject([NotNullWhen(true)] out AccessibleObject? accessibleObject) => 10682private protected bool TryGetExplicitlySetFont([NotNullWhen(true)] out Font? font) =>
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
62private ListViewItem? GetItemByIndexInternal(int index, [NotNullWhen(true)] bool throwInVirtualMode)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3633internal bool TryGetExplicitlySetFont([NotNullWhen(true)] out Font? local) => Properties.TryGetValue(s_fontProperty, out local);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (1)
630internal static bool IsNativeStringNullOrEmpty([NotNullWhen(false)] string? str)
System\Windows\Forms\Internal\OwnedObjectExtensions.cs (2)
13[NotNullWhen(true)] out TAs? ownerAs) 26[NotNullWhen(true)] out TAs? ownerAs)
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
38public static bool ContainsMnemonic([NotNullWhen(true)] string? text)
System\Windows\Forms\Nrbf\WinFormsNrbfSerializer.cs (2)
31public static bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type) 50public static bool TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value) =>
System\Windows\Forms\Nrbf\WinFormsSerializationRecordExtensions.cs (1)
21static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? imageListStreamer)
System\Windows\Forms\OLE\Clipboard.cs (2)
310[NotNullWhen(true), MaybeNullWhen(false)] out T data) 327[NotNullWhen(true), MaybeNullWhen(false)] out T data)
System\Windows\Forms\OLE\DataObject.cs (7)
69internal virtual bool TryUnwrapUserDataObject([NotNullWhen(true)] out IDataObject? dataObject) 185[NotNullWhen(true), MaybeNullWhen(false)] out T data) 196[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 201[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 205[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 218[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 295[NotNullWhen(true), MaybeNullWhen(false)] out T data)
System\Windows\Forms\OLE\DataObjectAdapter.cs (4)
33[MaybeNullWhen(false), NotNullWhen(true)] out T data) => DataObject.TryGetData(out data); 36[MaybeNullWhen(false), NotNullWhen(true)] out T data) => DataObject.TryGetData(format, out data); 40[NotNullWhen(true), MaybeNullWhen(false)] out T data) => DataObject.TryGetData(format, autoConvert, out data); 45[MaybeNullWhen(false), NotNullWhen(true)] out T data) => DataObject.TryGetData(format, resolver, autoConvert, out data);
System\Windows\Forms\OLE\DataObjectExtensions.cs (4)
30[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 39[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 49[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 61[NotNullWhen(true), MaybeNullWhen(false)] out T data) =>
System\Windows\Forms\OLE\ITypedDataObject.cs (4)
26[NotNullWhen(true), MaybeNullWhen(false)] out T data); 31[NotNullWhen(true), MaybeNullWhen(false)] out T data); 37[NotNullWhen(true), MaybeNullWhen(false)] out T data); 46[NotNullWhen(true), MaybeNullWhen(false)] out T data);
System\Windows\Forms\OLE\WinFormsOleServices.cs (2)
91static unsafe bool IOleServices.TryGetBitmapFromDataObject<T>(Com.IDataObject* dataObject, [NotNullWhen(true)] out T data) 103static unsafe bool TryGetBitmapData(Com.IDataObject* dataObject, [NotNullWhen(true)] out Bitmap? data)
System\Windows\Forms\OLE\WrappingDataObject.cs (1)
21internal override bool TryUnwrapUserDataObject([NotNullWhen(true)] out IDataObject? dataObject)
System\Windows\Forms\PropertyStore.cs (1)
84public bool TryGetValue<T>(int key, [NotNullWhen(true)] out T? value)
System.Windows.Forms.Analyzers.CSharp.Tests (1)
CompilerAnalyzerConfigOptions.cs (1)
26public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value) => _backing.TryGetValue(key, out value);
System.Windows.Forms.Design (20)
System\ComponentModel\Design\BinaryEditor.cs (1)
32private bool TryGetService<T>([NotNullWhen(true)] out T? service) where T : class
System\ComponentModel\Design\ComponentDesigner.cs (1)
568internal bool TryGetService<T>([NotNullWhen(true)] out T? service) where T : class
System\ComponentModel\Design\DesignerHost.cs (1)
627internal bool RemoveFromContainerPreProcess([NotNullWhen(true)] IComponent? component, IContainer container)
System\ComponentModel\Design\EventBindingService.cs (1)
139private static bool HasGenericArgument([NotNullWhen(true)] EventDescriptor? ed)
System\ComponentModel\Design\MenuCommandService.cs (1)
398private protected bool TryGetService<T>([NotNullWhen(true)] out T? service) where T : class
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
358private protected bool TryGetService<T>([NotNullWhen(true)] out T? service) where T : class
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
110private static bool TryGetTargetFrameworkProviderAndCheckType(IDesignerSerializationManager manager, object instance, [NotNullWhen(true)] out TypeDescriptionProvider? targetProvider) 178private static bool TryGetTargetFrameworkProviderForType(IServiceProvider provider, Type type, [NotNullWhen(true)] out TypeDescriptionProvider? targetProvider)
System\ComponentModel\Design\UndoEngine.cs (1)
310private protected bool TryGetService<T>([NotNullWhen(true)] out T? service) where T : class
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (2)
127[NotNullWhen(true)] ComponentChangingEventArgs? changing, 128[NotNullWhen(true)] ComponentChangedEventArgs? changed)
System\Windows\Forms\Design\CommandSet.cs (2)
275private bool CheckComponentEditor([NotNullWhen(true)] object? obj, bool launchEditor) 581private protected bool TryGetService<T>([NotNullWhen(true)] out T? service) where T : class
System\Windows\Forms\Design\ISelectionUIService.cs (1)
83bool GetContainerSelected([NotNullWhen(true)] object? component);
System\Windows\Forms\Design\MaskDescriptor.cs (2)
54public static bool IsValidMaskDescriptor([NotNullWhen(true)] MaskDescriptor? maskDescriptor) 59public static bool IsValidMaskDescriptor([NotNullWhen(true)] MaskDescriptor? maskDescriptor, out string validationErrorDescription)
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
1076protected bool TryGetService<T>([NotNullWhen(true)] out T? service) where T : class
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
185protected bool TryGetService<T>([NotNullWhen(true)] out T? service) where T : class
System\Windows\Forms\Design\SelectionUIService.cs (1)
1221bool ISelectionUIService.GetContainerSelected([NotNullWhen(true)] object? component)
System\Windows\Forms\Design\TableLayoutPanelCodeDomSerializer.cs (1)
67private static bool IsLocalizable([NotNullWhen(true)] IDesignerHost? host)
System.Windows.Forms.Primitives (14)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerHelper.cs (2)
10[NotNullWhen(true)] out T? context) 32public static bool TryGetSerializer<T>(this IDesignerSerializationManager manager, Type? objectType, [NotNullWhen(true)] out T? serializer) where T : class
System\ComponentModel\MemberDescriptorExtensions.cs (1)
11[NotNullWhen(true)] out T? attribute) where T : Attribute
System\ComponentModel\PropertyDescriptorExtensions.cs (1)
34public static bool TryGetEditor<T>(this PropertyDescriptor descriptor, [NotNullWhen(true)] out T? value)
System\ComponentModel\TypeDescriptorHelper.cs (3)
11[NotNullWhen(true)] out T? attribute) where T : Attribute 20[NotNullWhen(true)] out T? attribute) where T : Attribute 31public static bool TryGetEditor<T>(object component, [NotNullWhen(true)] out T? editor) where T : class
System\ServiceExtensions.cs (6)
43[NotNullWhen(true)] this IServiceProvider? provider, 44[NotNullWhen(true)] out T? service) 58[NotNullWhen(true)] this IDesignerHost? designerHost, 59[NotNullWhen(true)] out T? service) 73[NotNullWhen(true)] this ITypeDescriptorContext? context, 74[NotNullWhen(true)] out T? service)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (1)
115public bool TryGetMemberName(int dispId, [NotNullWhen(true)] out string? name)
System.Windows.Forms.Tests (5)
System\Windows\Forms\DataObjectExtensionsTests.cs (4)
233public bool TryGetData<T>([MaybeNullWhen(false), NotNullWhen(true)] out T data) 240public bool TryGetData<T>(string format, [MaybeNullWhen(false), NotNullWhen(true)] out T data) 247public bool TryGetData<T>(string format, bool autoConvert, [MaybeNullWhen(false), NotNullWhen(true)] out T data) 254public bool TryGetData<T>(string format, Func<TypeName, Type> resolver, bool autoConvert, [MaybeNullWhen(false), NotNullWhen(true)] out T data)
System\Windows\Forms\DataObjectTests.cs (1)
396[NotNullWhen(true), MaybeNullWhen(false)] out T data)
System.Windows.Forms.TestUtilities (8)
Data\TypedAndRuntimeDataObject.cs (4)
13public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>([MaybeNullWhen(false), NotNullWhen(true)] out T data) => 15public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(string format, [MaybeNullWhen(false), NotNullWhen(true)] out T data) 27public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(string format, bool autoConvert, [MaybeNullWhen(false), NotNullWhen(true)] out T data) => 29public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(string format, Func<TypeName, Type> resolver, bool autoConvert, [MaybeNullWhen(false), NotNullWhen(true)] out T data) =>
Data\TypedDataObject.cs (4)
13public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>([MaybeNullWhen(false), NotNullWhen(true)] out T data) => 15public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(string format, [MaybeNullWhen(false), NotNullWhen(true)] out T data) 27public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(string format, bool autoConvert, [MaybeNullWhen(false), NotNullWhen(true)] out T data) => 29public bool TryGetData<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(string format, Func<TypeName, Type> resolver, bool autoConvert, [MaybeNullWhen(false), NotNullWhen(true)] out T data) =>
System.Xaml (1)
System\Xaml\Replacements\DateTimeConverter2.cs (1)
28public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
Templates.Blazor.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
784private static bool TryGetOpenSslDirectory([NotNullWhen(true)] out string? openSslDir) 826private static bool TryGetOpenSslHash(string certificatePath, [NotNullWhen(true)] out string? hash)
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
784private static bool TryGetOpenSslDirectory([NotNullWhen(true)] out string? openSslDir) 826private static bool TryGetOpenSslHash(string certificatePath, [NotNullWhen(true)] out string? hash)
Templates.Blazor.WebAssembly.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
784private static bool TryGetOpenSslDirectory([NotNullWhen(true)] out string? openSslDir) 826private static bool TryGetOpenSslHash(string certificatePath, [NotNullWhen(true)] out string? hash)
Templates.Mvc.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
784private static bool TryGetOpenSslDirectory([NotNullWhen(true)] out string? openSslDir) 826private static bool TryGetOpenSslHash(string certificatePath, [NotNullWhen(true)] out string? hash)
Templates.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
877internal static bool TryFindCertificateInStore(X509Store store, X509Certificate2 certificate, [NotNullWhen(true)] out X509Certificate2? foundCertificate)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
784private static bool TryGetOpenSslDirectory([NotNullWhen(true)] out string? openSslDir) 826private static bool TryGetOpenSslHash(string certificatePath, [NotNullWhen(true)] out string? hash)
VBCSCompiler (3)
src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (2)
54[NotNullWhen(false)] out List<string>? errorMessages) 80[NotNullWhen(false)] out List<string>? errorMessages)
src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (1)
78public bool TryCreateCompiler(in RunRequest request, BuildPaths buildPaths, [NotNullWhen(true)] out CommonCompiler? compiler)
xunit.assert (1)
Sdk\AssertHelper.cs (1)
314 [NotNullWhen(true)] out object? converted)