2712 instantiations of 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) 72private 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) 445public static bool TryGetContainerMounts(this IResource resource, [NotNullWhen(true)] out IEnumerable<ContainerMountAnnotation>? volumeMounts) 456public static bool TryGetEndpoints(this IResource resource, [NotNullWhen(true)] out IEnumerable<EndpointAnnotation>? endpoints) 494public 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)
59public bool TryGetAnnotationAsObjectList<TValue>(string annotationName, [NotNullWhen(true)] out List<TValue>? list) 64internal 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.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)]
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.Components.WebAssembly (1)
HotReload\HotReloadAgent.cs (1)
43public static bool TryCreate(AgentReporter reporter, [NotNullWhen(true)] out HotReloadAgent? agent)
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.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.MessagePack (2)
Protocol\MessagePackHubProtocol.cs (1)
60public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message)
Protocol\MessagePackHubProtocolWorker.cs (1)
28public 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.Build.Tasks.CodeAnalysis (4)
CommandLineBuilderExtension.cs (1)
208internal static bool IsParameterEmpty([NotNullWhen(false)] string? parameter, params char[] splitOn)
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\UnicodeCharacterUtilities.cs (1)
91public static bool IsValidIdentifier([NotNullWhen(returnValue: true)] string? name)
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.EditorFeatures (6)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (1)
271[NotNullWhen(true)] out string? newLine,
CompleteStatement\CompleteStatementCommandHandler.cs (3)
158[NotNullWhen(true)] out SyntaxNode? startingNode, 431private static bool CaretIsInForStatementCondition(int caretPosition, ForStatementSyntax forStatementSyntax, [NotNullWhen(true)] out ExpressionSyntax? condition) 442private static bool CaretIsInForStatementDeclaration(int caretPosition, ForStatementSyntax forStatementSyntax, [NotNullWhen(true)] out VariableDeclarationSyntax? declaration)
StringCopyPaste\StringCopyPasteData.cs (1)
90[NotNullWhen(true)] out string? normalizedText)
StringCopyPaste\StringCopyPasteHelpers.cs (1)
346static bool TryReplaceChar(char c, [NotNullWhen(true)] out string? replaceWith)
Microsoft.CodeAnalysis.CSharp.Features (151)
ChangeSignature\CSharpChangeSignatureService.cs (1)
921protected override bool TryGetRecordPrimaryConstructor(INamedTypeSymbol typeSymbol, [NotNullWhen(true)] out IMethodSymbol? primaryConstructor)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
239private static bool HasLeadingNullableDirective(SyntaxNode root, [NotNullWhen(true)] out NullableDirectiveTriviaSyntax? leadingNullableDirective)
CodeRefactorings\SyncNamespace\CSharpChangeNamespaceService.cs (3)
110[NotNullWhen(returnValue: true)] out SyntaxNode? oldNode, 111[NotNullWhen(returnValue: true)] out SyntaxNode? newNode) 208[NotNullWhen(returnValue: true)] out SyntaxNode? newNode)
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (1)
478static bool TryGetInnermostReceiver(ExpressionSyntax node, ArrayBuilder<IdentifierNameSyntax> builder, [NotNullWhen(true)] out ExpressionSyntax? receiver, SemanticModel model)
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
260ImmutableArray<KeyValuePair<string, string>> options, [NotNullWhen(true)] out CompletionItem? item)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
80private static bool IsValidType([NotNullWhen(true)] ITypeSymbol? type)
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
198static bool IsExtendedPropertyPattern(MemberAccessExpressionSyntax memberAccess, [NotNullWhen(true)] out PropertyPatternClauseSyntax? propertyPatternClause)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (4)
211private bool IsAttributeNameContext(SyntaxToken token, int position, [NotNullWhen(true)] out string? elementName, [NotNullWhen(true)] out ISet<string>? attributeNames) 290private static bool IsAttributeValueContext(SyntaxToken token, [NotNullWhen(true)] out string? tagName, [NotNullWhen(true)] out string? attributeName)
ConvertForToForEach\CSharpConvertForToForEachCodeRefactoringProvider.cs (2)
44[NotNullWhen(true)] out ExpressionSyntax? initializer, 45[NotNullWhen(true)] out MemberAccessExpressionSyntax? memberAccess,
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
214[NotNullWhen(true)] out IConverter<ForEachStatementSyntax, StatementSyntax>? converter)
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (2)
60[NotNullWhen(true)] BaseNamespaceDeclarationSyntax? namespaceDecl, 63[NotNullWhen(true)] out (string title, string equivalenceKey)? info)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider_DocumentationComments.cs (1)
25private static bool IsXmlElement(XmlNodeSyntax node, string name, [NotNullWhen(true)] out XmlElementSyntax? element)
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (1)
49[NotNullWhen(true)] out IConvertStringProvider? provider,
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
258protected override bool IsSingleExteriorTrivia(DocumentationCommentTriviaSyntax documentationComment, [NotNullWhen(true)] out string? existingCommentText)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
514[NotNullWhen(true)] out SyntaxNode? newStatement) 1472internal override bool TryGetLambdaBodies(SyntaxNode node, [NotNullWhen(true)] out LambdaBody? body1, out LambdaBody? body2) 2484internal override bool HasUnsupportedOperation(IEnumerable<SyntaxNode> nodes, [NotNullWhen(true)] out SyntaxNode? unsupportedNode, out RudeEditKind rudeEdit)
EditAndContinue\DeclarationBody\CSharpLambdaBody.cs (1)
51public override bool TryMatchActiveStatement(DeclarationBody newBody, SyntaxNode oldStatement, ref int statementPart, [NotNullWhen(true)] out SyntaxNode? newStatement)
EditAndContinue\DeclarationBody\FieldWithInitializerDeclarationBody.cs (1)
63public override bool TryMatchActiveStatement(DeclarationBody newBody, SyntaxNode oldStatement, ref int statementPart, [NotNullWhen(true)] out SyntaxNode? newStatement)
EditAndContinue\DeclarationBody\InstanceConstructorDeclarationBody.cs (1)
74public sealed override bool TryMatchActiveStatement(DeclarationBody newBody, SyntaxNode oldStatement, ref int statementPart, [NotNullWhen(true)] out SyntaxNode? newStatement)
EditAndContinue\DeclarationBody\PropertyOrIndexerAccessorDeclarationBody.cs (1)
101public sealed override bool TryMatchActiveStatement(DeclarationBody newBody, SyntaxNode oldStatement, ref int statementPart, [NotNullWhen(true)] out SyntaxNode? newStatement)
EditAndContinue\DeclarationBody\SimpleMemberBody.cs (1)
33public override bool TryMatchActiveStatement(DeclarationBody newBody, SyntaxNode oldStatement, ref int statementPart, [NotNullWhen(true)] out SyntaxNode? newStatement)
EditAndContinue\DeclarationBody\TopLevelCodeDeclarationBody.cs (1)
61public override bool TryMatchActiveStatement(DeclarationBody newBody, SyntaxNode oldStatement, ref int statementPart, [NotNullWhen(true)] out SyntaxNode? newStatement)
ExtractMethod\Extensions.cs (3)
38public static bool IsStatementContainerNode([NotNullWhen(returnValue: true)] this SyntaxNode? node) 251public static bool IsArrayInitializer([NotNullWhen(returnValue: true)] this SyntaxNode? node) 254public static bool IsExpressionInCast([NotNullWhen(returnValue: true)] this SyntaxNode? node)
FullyQualify\CSharpFullyQualifyService.cs (1)
28protected override bool CanFullyQualify(SyntaxNode node, [NotNullWhen(true)] out SimpleNameSyntax? simpleName)
InlineHints\CSharpInlineTypeHintsService.cs (1)
153private static bool IsValidType([NotNullWhen(true)] ITypeSymbol? type)
IntroduceUsingStatement\CSharpIntroduceUsingStatementCodeRefactoringProvider.cs (1)
95[NotNullWhen(true)] out LocalDeclarationStatementSyntax? usingDeclarationStatement)
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (1)
180private static bool ShouldKeepFalse(IfStatementSyntax originalIfStatement, [NotNullWhen(returnValue: true)] StatementSyntax? falseStatement)
QuickInfo\CSharpSemanticQuickInfoProvider.cs (2)
37protected override bool GetBindableNodeForTokenIndicatingLambda(SyntaxToken token, [NotNullWhen(returnValue: true)] out SyntaxNode? found) 57protected override bool GetBindableNodeForTokenIndicatingPossibleIndexerAccess(SyntaxToken token, [NotNullWhen(returnValue: true)] out SyntaxNode? found)
Rename\CSharpRenameIssuesService.cs (1)
25SemanticModel semanticModel, ISymbol symbol, SyntaxToken triggerToken, [NotNullWhen(true)] out string? langError)
ReplaceConditionalWithStatements\CSharpReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
51[NotNullWhen(true)] out VariableDeclaratorSyntax? variable)
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (8)
113[NotNullWhen(true)] out ExpressionSyntax? start, out bool equals, [NotNullWhen(true)] out ExpressionSyntax? end) 124[NotNullWhen(true)] out ExpressionSyntax? end, [NotNullWhen(true)] out ExpressionSyntax? start) 132private static bool IsIncrementInitializer(VariableDeclaratorSyntax variable, [NotNullWhen(true)] out ExpressionSyntax? start) 140out bool equals, [NotNullWhen(true)] out ExpressionSyntax? end) 200VariableDeclaratorSyntax variable, [NotNullWhen(true)] out ExpressionSyntax? end) 208[NotNullWhen(true)] out ExpressionSyntax? start)
SignatureHelp\AttributeSignatureHelpProvider.cs (1)
47[NotNullWhen(true)] out AttributeSyntax? attribute)
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (4)
46private static bool TryGetElementAccessExpression(SyntaxNode root, int position, ISyntaxFactsService syntaxFacts, SignatureHelpTriggerReason triggerReason, CancellationToken cancellationToken, [NotNullWhen(true)] out ExpressionSyntax? identifier, out SyntaxToken openBrace) 302internal static bool TryGetSyntax(SyntaxNode root, int position, ISyntaxFactsService syntaxFacts, SignatureHelpTriggerReason triggerReason, CancellationToken cancellationToken, [NotNullWhen(true)] out ExpressionSyntax? identifier, out SyntaxToken openBrace) 343internal static bool TryGetSyntax(SyntaxNode root, int position, ISyntaxFactsService syntaxFacts, SignatureHelpTriggerReason triggerReason, CancellationToken cancellationToken, [NotNullWhen(true)] out ExpressionSyntax? identifier, out SyntaxToken openBrace) 380internal static bool TryGetSyntax(SyntaxNode root, int position, ISyntaxFactsService syntaxFacts, SignatureHelpTriggerReason triggerReason, CancellationToken cancellationToken, [NotNullWhen(true)] out ExpressionSyntax? identifier, out SyntaxToken openBrace)
SignatureHelp\InitializerExpressionSignatureHelpProvider.cs (1)
41[NotNullWhen(true)] out InitializerExpressionSyntax? expression)
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (1)
50[NotNullWhen(true)] out PrimaryConstructorBaseTypeSyntax? expression)
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (4)
64ISyntaxFactsService syntaxFacts, TextSpan currentSpan, CancellationToken cancellationToken, [NotNullWhen(true)] out TupleExpressionSyntax? result) 83ISyntaxFactsService syntaxFacts, TextSpan currentSpan, CancellationToken cancellationToken, [NotNullWhen(true)] out ParenthesizedExpressionSyntax? result) 203ISyntaxFactsService syntaxFacts, CancellationToken cancellationToken, [NotNullWhen(true)] out TupleExpressionSyntax? tupleExpression) 220ISyntaxFactsService syntaxFacts, CancellationToken cancellationToken, [NotNullWhen(true)] out ParenthesizedExpressionSyntax? parenthesizedExpression)
SplitStringLiteral\StringSplitter.cs (1)
85public bool TrySplit([NotNullWhen(true)] out SyntaxNode? newRoot, out int newPosition)
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertNamespaceAnalysis.cs (2)
24public static bool CanOfferUseBlockScoped(CodeStyleOption2<NamespaceDeclarationPreference> option, [NotNullWhen(true)] BaseNamespaceDeclarationSyntax? declaration, bool forAnalyzer) 40internal static bool CanOfferUseFileScoped(CodeStyleOption2<NamespaceDeclarationPreference> option, CompilationUnitSyntax root, [NotNullWhen(true)] BaseNamespaceDeclarationSyntax? declaration, bool forAnalyzer)
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticHelper.cs (1)
17private static bool TryGetDataFlowAnalysis(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, [NotNullWhen(returnValue: true)] out DataFlowAnalysis? dataFlow)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
56bool ShouldAnalyze(SymbolStartAnalysisContext context, [NotNullWhen(true)] out CodeStyleOption2<bool>? option)
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (3)
73[NotNullWhen(true)] out Location? primaryLocation, 74[NotNullWhen(true)] out Location? additionalLocation, 75[NotNullWhen(true)] out CodeStyleOption2<bool>? option)
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersHelper.cs (1)
25protected override bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
304[NotNullWhen(true)] out InvocationExpressionSyntax? invocation, 327[NotNullWhen(true)] out InvocationExpressionSyntax? invocation,
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
74private static bool IsReducing([NotNullWhen(true)] NullableContextOptions? oldOptions, [NotNullWhen(true)] NullableContextOptions? newOptions)
src\Analyzers\CSharp\Analyzers\SimplifyLinqExpression\CSharpSimplifyLinqTypeCheckAndCastDiagnosticAnalyzer.cs (6)
41[NotNullWhen(true)] out ParameterSyntax? lambdaParameter) 62[NotNullWhen(true)] out ITypeSymbol? whereType) 91[NotNullWhen(true)] out LambdaExpressionSyntax? whereLambda, 92[NotNullWhen(true)] out InvocationExpressionSyntax? whereInvocation, 93[NotNullWhen(true)] out SimpleNameSyntax? caseOrSelectName, 94[NotNullWhen(true)] out TypeSyntax? caseOrSelectType)
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\SimplifyPropertyPatternHelpers.cs (3)
15[NotNullWhen(true)] out SubpatternSyntax? innerSubpattern, 16[NotNullWhen(true)] out BaseExpressionColonSyntax? outerExpressionColon) 50public static bool IsMergable([NotNullWhen(true)] ExpressionSyntax? expression)
src\Analyzers\CSharp\Analyzers\UseCoalesceExpression\CSharpUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.cs (2)
41protected override bool IsNullCheck(ExpressionSyntax condition, [NotNullWhen(true)] out ExpressionSyntax? checkedExpression) 58protected override bool TryGetEmbeddedStatement(IfStatementSyntax ifStatement, [NotNullWhen(true)] out StatementSyntax? whenTrueStatement)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (1)
858[NotNullWhen(true)] out MemberAccessExpressionSyntax? memberAccess,
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpObjectCreationHelpers.cs (1)
15[NotNullWhen(true)] out VariableDeclaratorSyntax? variableDeclarator)
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerAnalyzer.cs (1)
31protected override bool IsInitializerOfLocalDeclarationStatement(LocalDeclarationStatementSyntax localDeclarationStatement, BaseObjectCreationExpressionSyntax rootExpression, [NotNullWhen(true)] out VariableDeclaratorSyntax? variableDeclarator)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (3)
102[NotNullWhen(true)] out StatementSyntax? whenTrue, 103[NotNullWhen(true)] out AssignmentExpressionSyntax? assignment) 177[NotNullWhen(true)] out ExpressionSyntax? testedExpression)
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (3)
92[NotNullWhen(true)] out INamedTypeSymbol? tupleType, 122[NotNullWhen(true)] out INamedTypeSymbol? tupleType, 141[NotNullWhen(true)] out INamedTypeSymbol? tupleType,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper.cs (1)
30public abstract bool CanOfferUseBlockBody(CodeStyleOption2<ExpressionBodyPreference> preference, SyntaxNode declaration, bool forAnalyzer, out bool fixesError, [NotNullWhen(true)] out ArrowExpressionClauseSyntax? expressionBody);
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyHelper`1.cs (5)
75public override bool CanOfferUseBlockBody(CodeStyleOption2<ExpressionBodyPreference> preference, SyntaxNode declaration, bool forAnalyzer, out bool fixesError, [NotNullWhen(true)] out ArrowExpressionClauseSyntax? expressionBody) 122[NotNullWhen(true)] out ArrowExpressionClauseSyntax? expressionWhenOnSingleLine, 132[NotNullWhen(true)] out ArrowExpressionClauseSyntax? expressionWhenOnSingleLine, out SyntaxToken semicolonWhenOnSingleLine) 153[NotNullWhen(true)] out ArrowExpressionClauseSyntax? arrowExpression, 178[NotNullWhen(true)] out ArrowExpressionClauseSyntax? expressionBody)
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaHelpers.cs (1)
114[NotNullWhen(true)] out ExpressionSyntax? expression)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
43public static bool TryCreate(Compilation compilation, [NotNullWhen(true)] out InfoCache? infoCache)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
65public static bool TryCreate(Compilation compilation, [NotNullWhen(true)] out InfoCache? infoCache)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
54public static bool IsSubtraction(IOperation operation, [NotNullWhen(true)] out IBinaryOperation? subtraction)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (4)
195[NotNullWhen(true)] out LocalDeclarationStatementSyntax? localDeclaration) 211[NotNullWhen(true)] out LocalDeclarationStatementSyntax? localDeclaration) 322[NotNullWhen(true)] out LocalDeclarationStatementSyntax? localDeclaration) 349[NotNullWhen(true)] out LocalDeclarationStatementSyntax? localDeclaration)
src\Analyzers\CSharp\Analyzers\UseNullPropagation\CSharpUseNullPropagationDiagnosticAnalyzer.cs (3)
40[NotNullWhen(true)] out ExpressionSyntax? conditionPartToCheck, out bool isEquals) 67[NotNullWhen(true)] out ExpressionSyntax? condition, 68[NotNullWhen(true)] out StatementSyntax? trueStatement)
src\Analyzers\CSharp\Analyzers\UseObjectInitializer\CSharpUseNamedMemberInitializerAnalyzer.cs (1)
23protected override bool IsInitializerOfLocalDeclarationStatement(LocalDeclarationStatementSyntax localDeclarationStatement, BaseObjectCreationExpressionSyntax rootExpression, [NotNullWhen(true)] out VariableDeclaratorSyntax? variableDeclarator)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (5)
271[NotNullWhen(true)] out VariableDeclaratorSyntax? declarator, 272[NotNullWhen(true)] out BinaryExpressionSyntax? asExpression, 273[NotNullWhen(true)] out ILocalSymbol? localSymbol) 319[NotNullWhen(true)] out ILocalSymbol? localSymbol, 320[NotNullWhen(true)] out VariableDeclaratorSyntax? declarator)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (4)
164[NotNullWhen(true)] out IfStatementSyntax? ifStatement, 165[NotNullWhen(true)] out LocalDeclarationStatementSyntax? localDeclarationStatement, 166[NotNullWhen(true)] out VariableDeclaratorSyntax? declarator, 167[NotNullWhen(true)] out CastExpressionSyntax? castExpression)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\UsePatternMatchingHelpers.cs (1)
16[NotNullWhen(true)] out ConditionalAccessExpressionSyntax? conditionalAccessExpression,
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (6)
86[NotNullWhen(true)] ISymbol? member, 87[NotNullWhen(true)] out MemberDeclarationSyntax? memberNode, 88[NotNullWhen(true)] out SyntaxNode? nodeToRemove, 341[NotNullWhen(true)] out IMethodSymbol? primaryConstructor, 342[NotNullWhen(true)] out ConstructorDeclarationSyntax? primaryConstructorDeclaration) 468[NotNullWhen(true)] out ISymbol? member)
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (3)
130[NotNullWhen(true)] StatementSyntax? assignmentStatement, 131[NotNullWhen(true)] out ExpressionSyntax? left, 132[NotNullWhen(true)] out ExpressionSyntax? right)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (5)
569[NotNullWhen(true)] out ISymbol? assignedVariable) 787[NotNullWhen(true)] out ISymbol? boundVariable, 833bool TryGetBoundVariableForIsPattern(IPatternOperation isPattern, [NotNullWhen(true)] out ISymbol? boundVariable) 960[NotNullWhen(true)] out ISymbol? otherC, 961[NotNullWhen(true)] out IEnumerable<IOperation>? statementsToCheck)
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (3)
52[NotNullWhen(true)] out SimpleNameSyntax? leftName, 53[NotNullWhen(true)] out ISymbol? matchingMember, 54[NotNullWhen(true)] out string? title)
src\Analyzers\CSharp\CodeFixes\FixIncorrectConstraint\CSharpFixIncorrectConstraintCodeFixProvider.cs (1)
33[NotNullWhen(true)] out TypeConstraintSyntax? constraint,
src\Analyzers\CSharp\CodeFixes\GenerateDefaultConstructors\CSharpGenerateDefaultConstructorsService.cs (1)
27[NotNullWhen(true)] out INamedTypeSymbol? classType)
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (3)
88SemanticModel model, ExpressionSyntax? expression, [NotNullWhen(true)] out ITypeSymbol? returnExpressionType) 103[NotNullWhen(true)] out ITypeSymbol? methodReturnType) 210SyntaxNode root, TextSpan span, [NotNullWhen(true)] out SyntaxNode? node)
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (2)
113[NotNullWhen(true)] out INamedTypeSymbol? ienumerableSymbol, 114[NotNullWhen(true)] out INamedTypeSymbol? ienumerableGenericSymbol)
src\Analyzers\CSharp\CodeFixes\MakeMemberStatic\CSharpMakeMemberStaticCodeFixProvider.cs (1)
23protected override bool TryGetMemberDeclaration(SyntaxNode node, [NotNullWhen(true)] out SyntaxNode? memberDeclaration)
src\Analyzers\CSharp\CodeFixes\MakeTypeAbstract\CSharpMakeTypeAbstractCodeFixProvider.cs (1)
22protected override bool IsValidRefactoringContext(SyntaxNode? node, [NotNullWhen(true)] out TypeDeclarationSyntax? typeDeclaration)
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
30Diagnostic diagnostic, CancellationToken cancellationToken, [NotNullWhen(true)] out RecordDeclarationSyntax? recordDeclaration)
src\Analyzers\CSharp\CodeFixes\UseNullPropagation\CSharpUseNullPropagationCodeFixProvider.cs (1)
32protected override bool TryGetBlock(SyntaxNode? statement, [NotNullWhen(true)] out StatementSyntax? block)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
49private static bool IsXmlElement(XmlNodeSyntax node, string name, [NotNullWhen(true)] out XmlElementSyntax? element)
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
283public static bool TryGetLambdaBodies(SyntaxNode node, [NotNullWhen(true)] out SyntaxNode? lambdaBody1, out SyntaxNode? lambdaBody2)
Microsoft.CodeAnalysis.CSharp.Workspaces (171)
Classification\SyntaxClassification\NameSyntaxClassifier.cs (1)
127[NotNullWhen(returnValue: true)] ISymbol? symbol,
Recommendations\CSharpRecommendationServiceRunner.cs (1)
51public override bool TryGetExplicitTypeOfLambdaParameter(SyntaxNode lambdaSyntax, int ordinalInLambda, [NotNullWhen(true)] out ITypeSymbol? explicitLambdaParameterType)
Simplification\Simplifiers\ExpressionSimplifier.cs (6)
34[NotNullWhen(true)] out ExpressionSyntax? replacementNode, 66[NotNullWhen(true)] out TypeSyntax? replacementNode, 89[NotNullWhen(true)] out TypeSyntax? replacementNode, 260[NotNullWhen(true)] out ExpressionSyntax? replacementNode, 274[NotNullWhen(true)] out ExpressionSyntax? replacementNode, 408[NotNullWhen(true)] out ExpressionSyntax? replacementNode,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\BlockSyntaxExtensions.cs (3)
25[NotNullWhen(true)] out ExpressionSyntax? expression, 119[NotNullWhen(true)] out ArrowExpressionClauseSyntax? arrowExpression, 181private static bool TryGetExpression(StatementSyntax firstStatement, LanguageVersion languageVersion, [NotNullWhen(true)] out ExpressionSyntax? expression, out SyntaxToken semicolonToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (22)
48public static bool IsSimpleMemberAccessExpressionName([NotNullWhen(true)] this ExpressionSyntax? expression) 51public static bool IsAnyMemberAccessExpressionName([NotNullWhen(true)] this ExpressionSyntax? expression) 60public static bool IsMemberBindingExpressionName([NotNullWhen(true)] this ExpressionSyntax? expression) 64public static bool IsRightSideOfQualifiedName([NotNullWhen(true)] this ExpressionSyntax? expression) 73public static bool IsRightSideOfDotOrArrow([NotNullWhen(true)] this ExpressionSyntax? name) 79public static bool IsRightSideOfDotOrArrowOrColonColon([NotNullWhen(true)] this ExpressionSyntax name) 89public static bool IsLeftSideOfDot([NotNullWhen(true)] this ExpressionSyntax? expression) 109public static bool IsLeftSideOfExplicitInterfaceSpecifier([NotNullWhen(true)] this NameSyntax? name) 116public static bool TryGetNameParts(this ExpressionSyntax expression, [NotNullWhen(true)] out IList<string>? parts) 170public static bool IsInConstantContext([NotNullWhen(true)] this ExpressionSyntax? expression) 197public static bool IsInOutContext([NotNullWhen(true)] this ExpressionSyntax? expression) 201public static bool IsInRefContext([NotNullWhen(true)] this ExpressionSyntax? expression) 208public static bool IsInRefContext([NotNullWhen(true)] this ExpressionSyntax? expression, [NotNullWhen(true)] out SyntaxNode? refParent) 224public static bool IsInInContext([NotNullWhen(true)] this ExpressionSyntax? expression) 240public static bool IsOnlyWrittenTo([NotNullWhen(true)] this ExpressionSyntax? expression) 321[NotNullWhen(true)] this ExpressionSyntax? expression, 398public static bool IsAttributeNamedArgumentIdentifier([NotNullWhen(true)] this ExpressionSyntax? expression) 425[NotNullWhen(true)] this ExpressionSyntax? expression, SemanticModel semanticModel, CancellationToken cancellationToken) 455[NotNullWhen(true)] this ExpressionSyntax? expression, SemanticModel semanticModel, CancellationToken cancellationToken) 856[NotNullWhen(true)] out StatementSyntax? statement) 937bool HasType(ExpressionSyntax expression, [NotNullWhen(true)] out ITypeSymbol? type)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
40public static bool TryGetPrimaryConstructor(this INamedTypeSymbol typeSymbol, [NotNullWhen(true)] out IMethodSymbol? primaryConstructor)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (18)
29public static bool IsKind<TNode>([NotNullWhen(true)] this SyntaxNode? node, SyntaxKind kind, [NotNullWhen(true)] out TNode? result) 42public static bool IsParentKind([NotNullWhen(true)] this SyntaxNode? node, SyntaxKind kind) 45public static bool IsParentKind<TNode>([NotNullWhen(true)] this SyntaxNode? node, SyntaxKind kind, [NotNullWhen(true)] out TNode? result) 88public static bool IsAnyArgumentList([NotNullWhen(true)] this SyntaxNode? node) 114public static bool IsEmbeddedStatementOwner([NotNullWhen(true)] this SyntaxNode? node) 279public static bool IsAsyncSupportingFunctionSyntax([NotNullWhen(true)] this SyntaxNode? node) 282public static bool IsCompoundAssignExpression([NotNullWhen(true)] this SyntaxNode? node) 285public static bool IsLeftSideOfAssignExpression([NotNullWhen(true)] this SyntaxNode? node) 289public static bool IsLeftSideOfAnyAssignExpression([NotNullWhen(true)] this SyntaxNode? node) 292public static bool IsRightSideOfAnyAssignExpression([NotNullWhen(true)] this SyntaxNode? node) 295public static bool IsLeftSideOfCompoundAssignExpression([NotNullWhen(true)] this SyntaxNode? node) 673public static bool IsVariableDeclaratorValue([NotNullWhen(true)] this SyntaxNode? node) 785[NotNullWhen(true)] this SyntaxNode? node, 787[NotNullWhen(true)] INamedTypeSymbol? expressionType, 837[NotNullWhen(true)] this SyntaxNode? node, 838[NotNullWhen(true)] out SyntaxNode? deconstructionLeft)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (2)
26public static bool IsLastTokenOfNode<T>(this SyntaxToken token, [NotNullWhen(true)] out T? node) where T : SyntaxNode 231public static bool TryParseGenericName(this SyntaxToken genericIdentifier, CancellationToken cancellationToken, [NotNullWhen(true)] out GenericNameSyntax? genericName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (4)
197public static bool IsEmbeddedStatement([NotNullWhen(true)] this SyntaxNode? node) 362public static bool IsEmbeddedStatementOwnerWithCloseParen([NotNullWhen(true)] this SyntaxNode? node) 387public static bool IsInitializerForObjectOrAnonymousObjectCreationExpression([NotNullWhen(true)] this SyntaxNode? node) 423public static bool IsInitializerForArrayOrCollectionCreationExpression([NotNullWhen(true)] this SyntaxNode? node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
251private static bool TryGetOperationBeforeDocComment(SyntaxToken currentToken, [NotNullWhen(true)] out AdjustNewLinesOperation? operation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (9)
40public bool IsWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken) 43public bool IsOnlyWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken) 46public bool IsInOutContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken) 49public bool IsInRefContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken) 52public bool IsInInContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken) 55public bool CanReplaceWithRValue(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? expression, CancellationToken cancellationToken) 114[NotNullWhen(true)] out SemanticModel? speculativeModel) 368public bool IsInsideNameOfExpression(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken) 392public bool IsInExpressionTree(SemanticModel semanticModel, SyntaxNode node, [NotNullWhen(true)] INamedTypeSymbol? expressionType, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
322public static bool ParentIsFieldDeclaration([NotNullWhen(true)] SyntaxNode? node) 325public static bool ParentIsEventFieldDeclaration([NotNullWhen(true)] SyntaxNode? node) 328public static bool ParentIsLocalDeclarationStatement([NotNullWhen(true)] SyntaxNode? node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (3)
22public override bool IsScopeBlock([NotNullWhen(true)] SyntaxNode? node) 25public override bool IsExecutableBlock([NotNullWhen(true)] SyntaxNode? node) 51public override bool IsStatementContainer([NotNullWhen(true)] SyntaxNode? node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpHeaderFacts.cs (9)
24public override bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration) 38public override bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration) 51public override bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter) 64public override bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method) 77public override bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction) 90public override bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration) 105public override bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement) 118public override bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement) 131public override bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (74)
125public bool IsEntirelyWithinStringOrCharOrNumericLiteral([NotNullWhen(true)] SyntaxTree? syntaxTree, int position, CancellationToken cancellationToken) 135public bool IsDirective([NotNullWhen(true)] SyntaxNode? node) 138public bool TryGetExternalSourceInfo([NotNullWhen(true)] SyntaxNode? node, out ExternalSourceInfo info) 159public bool IsNameOfSimpleMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node) 165public bool IsNameOfAnyMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node) 168public bool IsNameOfMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node) 181public bool IsDeclarationExpression([NotNullWhen(true)] SyntaxNode? node) 184public bool IsNamedArgument([NotNullWhen(true)] SyntaxNode? node) 187public bool IsNameOfNamedArgument([NotNullWhen(true)] SyntaxNode? node) 193public bool IsParameterList([NotNullWhen(true)] SyntaxNode? node) 196public bool IsUsingDirectiveName([NotNullWhen(true)] SyntaxNode? node) 200public bool IsUsingAliasDirective([NotNullWhen(true)] SyntaxNode? node) 211public bool IsDeconstructionForEachStatement([NotNullWhen(true)] SyntaxNode? node) 214public bool IsUsingLocalDeclarationStatement([NotNullWhen(true)] SyntaxNode? node) 217public bool IsDeconstructionAssignment([NotNullWhen(true)] SyntaxNode? node) 230public bool IsStatement([NotNullWhen(true)] SyntaxNode? node) 233public bool IsExecutableStatement([NotNullWhen(true)] SyntaxNode? node) 236public bool IsGlobalStatement([NotNullWhen(true)] SyntaxNode? node) 242public bool IsMethodBody([NotNullWhen(true)] SyntaxNode? node) 525public bool IsPostfixUnaryExpression([NotNullWhen(true)] SyntaxNode? node) 528public bool IsElementBindingExpression([NotNullWhen(true)] SyntaxNode? node) 531public bool IsMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node) 534public bool IsPointerMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node) 573public bool IsInNamespaceOrTypeContext([NotNullWhen(true)] SyntaxNode? node) 576public bool IsBaseTypeList([NotNullWhen(true)] SyntaxNode? node) 588public bool IsArgument([NotNullWhen(true)] SyntaxNode? node) 591public bool IsAttributeArgument([NotNullWhen(true)] SyntaxNode? node) 594public bool IsSimpleArgument([NotNullWhen(true)] SyntaxNode? node) 601public bool IsInConstantContext([NotNullWhen(true)] SyntaxNode? node) 610public bool IsAttributeNamedArgumentIdentifier([NotNullWhen(true)] SyntaxNode? node) 624public bool IsNameOfSubpattern([NotNullWhen(true)] SyntaxNode? node) 633[NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? initializedInstance) 664public bool IsAnyInitializerExpression([NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? creationExpression) 723public bool IsMethodLevelMember([NotNullWhen(true)] SyntaxNode? node) 731public bool IsTopLevelNodeWithMembers([NotNullWhen(true)] SyntaxNode? node) 939public bool ContainsInMemberBody([NotNullWhen(true)] SyntaxNode? node, TextSpan span) 1105public bool IsLeftSideOfDot([NotNullWhen(true)] SyntaxNode? node) 1120public bool IsLeftSideOfExplicitInterfaceSpecifier([NotNullWhen(true)] SyntaxNode? node) 1123public bool IsLeftSideOfAssignment([NotNullWhen(true)] SyntaxNode? node) 1126public bool IsLeftSideOfAnyAssignment([NotNullWhen(true)] SyntaxNode? node) 1129public bool IsLeftSideOfCompoundAssignment([NotNullWhen(true)] SyntaxNode? node) 1135public bool IsInferredAnonymousObjectMemberDeclarator([NotNullWhen(true)] SyntaxNode? node) 1139public bool IsOperandOfIncrementExpression([NotNullWhen(true)] SyntaxNode? node) 1142public static bool IsOperandOfDecrementExpression([NotNullWhen(true)] SyntaxNode? node) 1145public bool IsOperandOfIncrementOrDecrementExpression([NotNullWhen(true)] SyntaxNode? node) 1193public bool IsUsingOrExternOrImport([NotNullWhen(true)] SyntaxNode? node) 1196public bool IsGlobalAssemblyAttribute([NotNullWhen(true)] SyntaxNode? node) 1199public bool IsGlobalModuleAttribute([NotNullWhen(true)] SyntaxNode? node) 1202private static bool IsGlobalAttribute([NotNullWhen(true)] SyntaxNode? node, SyntaxKind attributeTarget) 1259public bool IsSimpleAssignmentStatement([NotNullWhen(true)] SyntaxNode? statement) 1286public bool IsAnyAssignmentStatement([NotNullWhen(true)] SyntaxNode? node) 1316public bool IsExpressionOfForeach([NotNullWhen(true)] SyntaxNode? node) 1368public bool IsConversionExpression([NotNullWhen(true)] SyntaxNode? node) 1371public bool IsCastExpression([NotNullWhen(true)] SyntaxNode? node) 1394public bool IsParameterNameXmlElementSyntax([NotNullWhen(true)] SyntaxNode? node) 1423public bool IsAnyPattern([NotNullWhen(true)] SyntaxNode? node) 1452public bool IsBinaryPattern([NotNullWhen(true)] SyntaxNode? node) 1455public bool IsUnaryPattern([NotNullWhen(true)] SyntaxNode? node) 1491public bool IsVerbatimInterpolatedStringExpression([NotNullWhen(true)] SyntaxNode? node) 1506public bool IsAnonymousFunctionExpression([NotNullWhen(true)] SyntaxNode? node) 1509public bool IsBaseNamespaceDeclaration([NotNullWhen(true)] SyntaxNode? node) 1512public bool IsBinaryExpression([NotNullWhen(true)] SyntaxNode? node) 1515public bool IsLiteralExpression([NotNullWhen(true)] SyntaxNode? node) 1518public bool IsMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node) 1521public bool IsMethodDeclaration([NotNullWhen(true)] SyntaxNode? node) 1524public bool IsSimpleName([NotNullWhen(true)] SyntaxNode? node) 1527public bool IsAnyName([NotNullWhen(true)] SyntaxNode? node) 1530public bool IsAnyType([NotNullWhen(true)] SyntaxNode? node) 1533public bool IsNamedMemberInitializer([NotNullWhen(true)] SyntaxNode? node) 1536public bool IsElementAccessInitializer([NotNullWhen(true)] SyntaxNode? node) 1539public bool IsObjectMemberInitializer([NotNullWhen(true)] SyntaxNode? node) 1542public bool IsObjectCollectionInitializer([NotNullWhen(true)] SyntaxNode? node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
939private static bool IsNullOrErrorType([NotNullWhen(false)] ITypeSymbol? type)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.State.cs (1)
104private static bool IsMadeOfSpecialTypes([NotNullWhen(true)] ITypeSymbol? type)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (2)
178[NotNullWhen(true)] out ArrowExpressionClauseSyntax? arrowExpression, out SyntaxToken semicolonToken) 253[NotNullWhen(true)] out ArrowExpressionClauseSyntax? arrowExpression, out SyntaxToken semicolonToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeRefactorings\CSharpRefactoringHelpersService.cs (1)
29public override bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (1)
371public bool IsRecordParameterAttributeContext([NotNullWhen(true)] out RecordDeclarationSyntax? recordDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
614private static bool IsGenericInterfaceOrDelegateTypeParameterList([NotNullWhen(true)] SyntaxNode? node)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
685public static bool IsPartialTypeDeclarationNameContext(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken, [NotNullWhen(true)] out TypeDeclarationSyntax? declarationSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\DocumentationCommentExtensions.cs (1)
13public static bool IsMultilineDocComment([NotNullWhen(true)] this DocumentationCommentTriviaSyntax? documentationComment)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
118public static bool TryCreateNativeIntegerType(INamedTypeSymbol symbol, [NotNullWhen(true)] out TypeSyntax? syntax)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
16public static bool IsPotentialTypeName([NotNullWhen(true)] this TypeSyntax? typeSyntax, SemanticModel? semanticModelOpt, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\InitializeParameter\InitializeParameterHelpers.cs (1)
239[NotNullWhen(true)] out StatementSyntax? statement)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.ParsedSyntaxTree.cs (2)
55public override bool TryGetText([NotNullWhen(true)] out SourceText? text) 70public override bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root)
Microsoft.CodeAnalysis.EditorFeatures (12)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (1)
44private static bool IsAvailable(ITextBuffer subjectBuffer, [NotNullWhen(true)] out Workspace? workspace)
EditAndContinue\ActiveStatementTrackingService.cs (1)
297private static bool TryGetSnapshot(TextDocument document, [NotNullWhen(true)] out ITextSnapshot? snapshot)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
124public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value)
EditorConfigSettings\Extensions\SolutionExtensions.cs (1)
41static bool TryGetFolderContainingProject(Project project, [NotNullWhen(true)] out DirectoryInfo? directoryInfo)
EditorConfigSettings\Updater\NamingStyles\EditorConfigNamingStylesExtensions.cs (1)
21[NotNullWhen(true)] out NamingStyleOption? namingStyleOption)
Options\EditorAnalyzerConfigOptions.cs (1)
23public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value)
Organizing\OrganizeDocumentCommandHandler.cs (1)
72private static bool IsCommandSupported(EditorCommandArgs args, bool needsSemantics, [NotNullWhen(true)] out Workspace? workspace)
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (1)
273[NotNullWhen(true)] out TrackingSession trackingSession,
Shared\Extensions\ITextBufferExtensions.cs (2)
27internal static bool TryGetWorkspace(this ITextBuffer buffer, [NotNullWhen(true)] out Workspace? workspace) 54private static bool TryGetSupportsFeatureService(ITextBuffer buffer, [NotNullWhen(true)] out ITextBufferSupportsFeatureService? service)
Shared\Utilities\LinkedEditsTracker.cs (1)
58public bool TryGetTextChanged(TextContentChangedEventArgs args, [NotNullWhen(true)] out string? replacementText)
Tagging\AbstractAsynchronousTaggerProvider.cs (1)
169private bool TryRetrieveTagSource(ITextView? textView, ITextBuffer subjectBuffer, [NotNullWhen(true)] out TagSource? tagSource)
Microsoft.CodeAnalysis.Features (154)
ChangeSignature\AbstractChangeSignatureService.cs (1)
84protected abstract bool TryGetRecordPrimaryConstructor(INamedTypeSymbol typeSymbol, [NotNullWhen(true)] out IMethodSymbol? primaryConstructor);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
57public abstract bool TryGetReplacementReferenceSyntax(SyntaxNode reference, ImmutableArray<string> newNamespaceParts, ISyntaxFactsService syntaxFacts, [NotNullWhen(returnValue: true)] out SyntaxNode? old, [NotNullWhen(returnValue: true)] out SyntaxNode? @new);
Completion\CommonCompletionUtilities.cs (1)
208public static bool TryRemoveAttributeSuffix(ISymbol symbol, SyntaxContext context, [NotNullWhen(true)] out string? name)
Completion\CompletionItem.cs (1)
111internal bool TryGetProperty(string name, [NotNullWhen(true)] out string? value)
Completion\Providers\ImportCompletionProvider\AbstractExtensionMethodImportCompletionProvider.cs (1)
73[NotNullWhen(true)] out ITypeSymbol? receiverTypeSymbol)
Completion\Providers\SymbolCompletionItem.cs (1)
265public static bool TryGetInsertionText(CompletionItem item, [NotNullWhen(true)] out string? insertionText)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
346private static bool IsNullOrErrorType([NotNullWhen(false)] ITypeSymbol? type)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (4)
44[NotNullWhen(true)] out TExpressionSyntax? initializer, 45[NotNullWhen(true)] out TMemberAccessExpressionSyntax? memberAccess, 247[NotNullWhen(true)] out ITypeSymbol? iterationType) 282INamedTypeSymbol ienumeratorType, [NotNullWhen(true)] out ITypeSymbol? iterationType)
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (4)
70[NotNullWhen(true)] TIfStatementSyntax? ifStatement, 73[NotNullWhen(true)] out Analyzer? analyzer, 74[NotNullWhen(true)] out ImmutableArray<AnalyzedSwitchSection> sections, 75[NotNullWhen(true)] out SyntaxNode? target)
ConvertLinq\ConvertForEachToLinqQuery\AbstractConvertForEachToLinqQueryProvider.cs (2)
41[NotNullWhen(true)] out IConverter<TForEachStatement, TStatement>? converter); 166[NotNullWhen(true)] out IConverter<TForEachStatement, TStatement>? converter)
Debugging\AbstractDataTipInfoGetter.cs (1)
44private static bool IsLinqExtensionMethod([NotNullWhen(true)] ISymbol? symbol)
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (1)
32protected abstract bool IsSingleExteriorTrivia(TDocumentationComment documentationComment, [NotNullWhen(true)] out string? existingCommentText);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
403internal abstract bool HasUnsupportedOperation(IEnumerable<SyntaxNode> newNodes, [NotNullWhen(true)] out SyntaxNode? unsupportedNode, out RudeEditKind rudeEdit); 466internal abstract bool TryGetLambdaBodies(SyntaxNode node, [NotNullWhen(true)] out LambdaBody? body1, out LambdaBody? body2); 1300private static bool TryGetTrackedStatement(ImmutableArray<ActiveStatementLineSpan> activeStatementSpans, ActiveStatementId id, SourceText text, MemberBody body, [NotNullWhen(true)] out SyntaxNode? trackedStatement, out int trackedStatementPart) 1710private static bool TryGetMatchingAncestor(IReadOnlyDictionary<SyntaxNode, SyntaxNode> forwardMap, SyntaxNode? oldNode, [NotNullWhen(true)] out SyntaxNode? newAncestor)
EditAndContinue\DebuggingSession.cs (4)
336bool TryGetBaselinesContainingModuleVersion(Guid moduleId, [NotNullWhen(true)] out ImmutableList<ProjectBaseline>? baselines) 346[NotNullWhen(true)] out EmitBaseline? baseline, 347[NotNullWhen(true)] out DebugInformationReaderProvider? debugInfoReaderProvider, 348[NotNullWhen(true)] out MetadataReaderProvider? metadataReaderProvider)
EditAndContinue\DeclarationBody.cs (1)
84public abstract bool TryMatchActiveStatement(DeclarationBody newBody, SyntaxNode oldStatement, ref int statementPart, [NotNullWhen(true)] out SyntaxNode? newStatement);
EditAndContinue\Utilities\Extensions.cs (1)
190private static bool ParsePrimaryParameterBackingFieldName(string fieldName, [NotNullWhen(true)] out string? parameterName)
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (2)
34[NotNullWhen(true)] out string? identifier, 35[NotNullWhen(true)] out IEnumerable<string>? options)
EmbeddedLanguages\EmbeddedLanguageDetector.cs (19)
36[NotNullWhen(true)] out string? identifier, 63[NotNullWhen(true)] out string? identifier, 84[NotNullWhen(true)] out string? identifier, 85[NotNullWhen(true)] out IEnumerable<string>? options) 120[NotNullWhen(true)] out string? identifier, 121[NotNullWhen(true)] out IEnumerable<string>? options) 137[NotNullWhen(true)] out string? identifier, 138[NotNullWhen(true)] out IEnumerable<string>? options) 158[NotNullWhen(true)] out string? identifier) 210[NotNullWhen(true)] out string? identifier) 281[NotNullWhen(true)] out string? identifier, 336[NotNullWhen(true)] out string? identifier) 398[NotNullWhen(true)] out string? identifier) 414[NotNullWhen(true)] out string? identifier) 428[NotNullWhen(true)] out string? identifier) 435ISymbol? symbol, [NotNullWhen(true)] out string? identifier) 443[NotNullWhen(true)] ISymbol? symbol, 444[NotNullWhen(true)] out string? identifier) 461[NotNullWhen(true)] out string? identifier)
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (1)
94public bool IsProbablyJson(SyntaxToken token, [NotNullWhen(true)] out JsonTree? tree)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (2)
1323private static bool IsEscapedMinus([NotNullWhen(true)] RegexNode? node) 1957[NotNullWhen(false)] out string? message)
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (1)
70public static bool TryGetInsertionText(CompletionItem item, [NotNullWhen(true)] out string? insertionText)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
176[NotNullWhen(true)] out Lazy<IUnitTestingIncrementalAnalyzerProvider, UnitTestingIncrementalAnalyzerProviderMetadata>? lazyProvider)
FullyQualify\AbstractFullyQualifyService.cs (1)
37protected abstract bool CanFullyQualify(SyntaxNode node, [NotNullWhen(true)] out TSimpleNameSyntax? simpleName);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
137[NotNullWhen(true)] out INamedTypeSymbol? constructedType)
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
130[NotNullWhen(true)] out IParameterSymbol? parameter,
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (2)
100private bool ShouldRemoveVariableDeclaratorContainingExpression([NotNullWhen(true)] out string? varDeclName, [NotNullWhen(true)] out SyntaxNode? localDeclaration)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (2)
51protected abstract bool TryCreateUsingLocalDeclaration(ParseOptions options, TLocalDeclarationSyntax declarationStatement, [NotNullWhen(true)] out TLocalDeclarationSyntax? usingDeclarationStatement); 140private static bool IsLegalUsingStatementType(Compilation compilation, ITypeSymbol disposableType, [NotNullWhen(true)] ITypeSymbol? type)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
283public bool TryAddDocumentToWorkspace(MetadataAsSourceWorkspace workspace, string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId)
MetadataAsSource\IMetadataAsSourceFileProvider.cs (1)
40bool TryAddDocumentToWorkspace(MetadataAsSourceWorkspace workspace, string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId);
MetadataAsSource\IMetadataAsSourceFileService.cs (1)
39bool TryAddDocumentToWorkspace(string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId);
MetadataAsSource\MetadataAsSourceFileService.cs (1)
166public bool TryAddDocumentToWorkspace(string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId)
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (2)
50[NotNullWhen(true)] out CachedIndexMap? cachedIndexMap, 51[NotNullWhen(true)] out StringTable? stringTable)
PdbSourceDocument\IImplementationAssemblyLookupService.cs (1)
15bool TryFindImplementationAssemblyPath(string referencedDllPath, [NotNullWhen(true)] out string? implementationDllPath);
PdbSourceDocument\ImplementationAssemblyLookupService.cs (4)
42public bool TryFindImplementationAssemblyPath(string referencedDllPath, [NotNullWhen(true)] out string? implementationDllPath) 105bool TryGetCachedTypeForwards(string dllPath, [NotNullWhen(true)] out Dictionary<(string @namespace, string typeName), string>? typeForwards) 122private static bool TryNugetLibToRef(string[] pathParts, [NotNullWhen(true)] out string? implementationDllPath) 146private static bool TryTargetingPackToSharedSdk(string[] pathParts, [NotNullWhen(true)] out string? implementationDllPath)
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
387public bool TryAddDocumentToWorkspace(MetadataAsSourceWorkspace workspace, string filePath, SourceTextContainer sourceTextContainer, [NotNullWhen(true)] out DocumentId? documentId)
PdbSourceDocument\SourceLinkMap.cs (1)
171[NotNullWhen(true)]
PullMemberUp\MemberAndDestinationValidator.cs (1)
28public static bool IsMemberValid([NotNullWhen(true)] ISymbol? member)
QuickInfo\CommonSemanticQuickInfoProvider.cs (3)
182protected abstract bool GetBindableNodeForTokenIndicatingLambda(SyntaxToken token, [NotNullWhen(returnValue: true)] out SyntaxNode? found); 183protected abstract bool GetBindableNodeForTokenIndicatingPossibleIndexerAccess(SyntaxToken token, [NotNullWhen(returnValue: true)] out SyntaxNode? found); 264private static bool IsOk([NotNullWhen(returnValue: true)] ISymbol? symbol)
Rename\IRenameIssuesService.cs (1)
13SemanticModel semantic, ISymbol symbol, SyntaxToken triggerToken, [NotNullWhen(true)] out string? langError);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (2)
40protected abstract bool HasSingleVariable(TLocalDeclarationStatementSyntax localDeclarationStatement, [NotNullWhen(true)] out TVariableSyntax? variable); 45private static bool IsSupportedSimpleStatement(ISyntaxFacts syntaxFacts, [NotNullWhen(true)] TStatementSyntax? statement)
SemanticSearch\AbstractSemanticSearchService.cs (1)
325private static bool TryGetFindMethod(Assembly queryAssembly, [NotNullWhen(true)] out MethodInfo? method, out string? error, out string[]? errorMessageArgs)
SignatureHelp\CommonSignatureHelpUtilities.cs (1)
111[NotNullWhen(true)] out TSyntax? expression)
Snippets\SnippetFunctionService.cs (2)
93[NotNullWhen(true)] out string? snippetFunctionName, 94[NotNullWhen(true)] out string? param)
Snippets\SnippetProviders\AbstractInlineStatementSnippetProvider.cs (1)
96[NotNullWhen(true)] out InlineExpressionInfo? expressionInfo,
Snippets\SnippetUtilities.cs (1)
12public static bool TryGetWordOnLeft(int position, SourceText currentText, ISyntaxFactsService syntaxFactsService, [NotNullWhen(true)] out TextSpan? wordSpan)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
35public static bool TryGetAnalyzer(Compilation compilation, [NotNullWhen(true)] out HashCodeAnalyzer analyzer)
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.OperationDeconstructor.cs (1)
168private static bool TryGetFieldOrProperty(IOperation operation, [NotNullWhen(true)] out ISymbol? symbol)
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (2)
27public static bool TryGetMappedOptions(string diagnosticId, string language, [NotNullWhen(true)] out ImmutableHashSet<IOption2>? options) 32public static bool TryGetMappedFadingOption(string diagnosticId, [NotNullWhen(true)] out PerLanguageOption2<bool>? fadingOption)
src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
139[NotNullWhen(returnValue: true)] out string? targetNamespace)
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (2)
43public bool TryGetOrComputePreferredOrder(string value, [NotNullWhen(true)] out Dictionary<int, int>? preferredOrder) 68protected virtual bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
298[NotNullWhen(returnValue: true)] out string? id, 827[NotNullWhen(returnValue: true)] out string? id,
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\SuppressMessageAttributeState.cs (1)
134[NotNullWhen(returnValue: true)] out IOperation? argumentValueOperation)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
790private bool IsCandidateSymbol([NotNullWhen(true)] ISymbol? memberSymbol)
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
84[NotNullWhen(true)] out Options? options)
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
249private static bool HasNonImplicitInstance(IInvocationOperation invocation, [NotNullWhen(true)] out IOperation? instance)
src\Analyzers\Core\Analyzers\SimplifyLinqExpression\AbstractSimplifyLinqExpressionDiagnosticAnalyzer.cs (4)
69static bool TryGetEnumerableTypeSymbol(Compilation compilation, [NotNullWhen(true)] out INamedTypeSymbol? enumerableType) 75static bool TryGetLinqWhereExtensionMethod(INamedTypeSymbol enumerableType, [NotNullWhen(true)] out IMethodSymbol? linqMethod) 78static bool TryGetLinqSelectExtensionMethod(INamedTypeSymbol enumerableType, [NotNullWhen(true)] out IMethodSymbol? linqMethod) 81static bool TryGetLinqExtensionMethod(INamedTypeSymbol enumerableType, string name, [NotNullWhen(true)] out IMethodSymbol? linqMethod)
src\Analyzers\Core\Analyzers\SimplifyTypeNames\SimplifyTypeNamesDiagnosticAnalyzerBase.cs (1)
114public bool TrySimplify(SemanticModel model, SyntaxNode node, [NotNullWhen(true)] out Diagnostic? diagnostic, TSimplifierOptions options, AnalyzerOptions analyzerOptions, CancellationToken cancellationToken)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
310[NotNullWhen(true)] out TFieldDeclaration? fieldDeclaration, 311[NotNullWhen(true)] out TVariableDeclarator? variableDeclarator,
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (5)
34protected abstract bool IsNullCheck(TExpressionSyntax condition, [NotNullWhen(true)] out TExpressionSyntax? checkedExpression); 39protected abstract bool TryGetEmbeddedStatement(TIfStatementSyntax ifStatement, [NotNullWhen(true)] out TStatementSyntax? whenTrueStatement); 126[NotNullWhen(true)] out TExpressionSyntax? expressionToCoalesce) 184bool IsLegalWhenTrueStatementForAssignment([NotNullWhen(true)] out SyntaxNode? whenPartToAnalyze) 218[NotNullWhen(true)] out TExpressionSyntax? expressionToCoalesce)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
53TLocalDeclarationStatementSyntax localDeclarationStatement, TObjectCreationExpressionSyntax rootExpression, [NotNullWhen(true)] out TVariableDeclaratorSyntax? variableDeclarator);
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerAnalyzer.cs (1)
203[NotNullWhen(true)] out TExpressionSyntax? instance)
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (4)
134[NotNullWhen(true)] out TExpressionSyntax? instance, 179[NotNullWhen(true)] out TExpressionSyntax? instance) 211[NotNullWhen(true)] out TExpressionSyntax? instance, 274[NotNullWhen(true)] out TExpressionSyntax? instance,
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForAssignment\UseConditionalExpressionForAssignmentHelpers.cs (3)
24[NotNullWhen(true)] out IOperation trueStatement, 25[NotNullWhen(true)] out IOperation? falseStatement, 195[NotNullWhen(true)] IOperation? statement,
src\Analyzers\Core\Analyzers\UseConditionalExpression\ForReturn\UseConditionalExpressionForReturnHelpers.cs (2)
20[NotNullWhen(true)] out IOperation? trueStatement, 21[NotNullWhen(true)] out IOperation? falseStatement,
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (5)
22public static bool IsSystemNullableValueProperty([NotNullWhen(true)] ISymbol? symbol) 84[NotNullWhen(true)] out TExpressionSyntax? conditionPartToCheck, out bool isEquals); 217[NotNullWhen(true)] out TExpressionSyntax? conditionPartToCheck, 249[NotNullWhen(true)] out TExpressionSyntax? conditionPartToCheck, out bool isEquals) 272[NotNullWhen(true)] out TExpressionSyntax? conditionPartToCheck,
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (2)
26TIfStatementSyntax ifStatement, [NotNullWhen(true)] out TExpressionSyntax? condition, [NotNullWhen(true)] out TStatementSyntax? trueStatement);
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
177[NotNullWhen(true)] out ISymbol? typeMember)
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (4)
169[NotNullWhen(true)] out IExpressionStatementOperation? expressionStatement, 170[NotNullWhen(true)] out IAssignmentOperation? assignmentExpression) 210[NotNullWhen(true)] out ISymbol? localOrParameter) 242[NotNullWhen(true)] out ISymbol? localOrParameter)
src\Analyzers\Core\CodeFixes\AddExplicitCast\Fixer.cs (1)
116[NotNullWhen(true)] out ITypeSymbol? targetArgumentConversionType)
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
23[NotNullWhen(true)] out INamedTypeSymbol? classType);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (2)
33[NotNullWhen(true)] INamedTypeSymbol? typeToGenerateIn, 60[NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn,
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (1)
266private bool ShouldGenerateAccessor([NotNullWhen(true)] IMethodSymbol? method)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Conflicts.cs (1)
25private bool HasConflictingMember(ISymbol member, ArrayBuilder<ISymbol> implementedVisibleMembers, [NotNullWhen(true)] out ISymbol? conflictingMember)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Method.cs (1)
76Compilation compilation, IMethodSymbol method, [NotNullWhen(true)] IMethodSymbol? conflictingMethod)
src\Analyzers\Core\CodeFixes\MakeMemberStatic\AbstractMakeMemberStaticCodeFixProvider.cs (1)
19protected abstract bool TryGetMemberDeclaration(SyntaxNode node, [NotNullWhen(true)] out SyntaxNode? memberDeclaration);
src\Analyzers\Core\CodeFixes\MakeTypeAbstract\AbstractMakeTypeAbstractCodeFixProvider.cs (1)
20protected abstract bool IsValidRefactoringContext(SyntaxNode? node, [NotNullWhen(true)] out TTypeDeclarationSyntax? typeDeclaration);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (2)
158[NotNullWhen(true)] out IVariableDeclarationGroupOperation? localDeclaration, 159[NotNullWhen(true)] out IVariableDeclaratorOperation? declarator)
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (1)
51protected abstract bool TryGetBlock(SyntaxNode? node, [NotNullWhen(true)] out TStatementSyntax? block);
StackTraceExplorer\DefaultStackParser.cs (1)
12public bool TryParseLine(VirtualCharSequence line, [NotNullWhen(true)] out ParsedFrame? parsedFrame)
StackTraceExplorer\DotnetStackFrameParser.cs (1)
16public bool TryParseLine(VirtualCharSequence line, [NotNullWhen(true)] out ParsedFrame? parsedFrame)
StackTraceExplorer\IStackFrameParser.cs (1)
12bool TryParseLine(VirtualCharSequence line, [NotNullWhen(returnValue: true)] out ParsedFrame? parsedFrame);
StackTraceExplorer\VSDebugCallstackParser.cs (1)
14public bool TryParseLine(VirtualCharSequence line, [NotNullWhen(true)] out ParsedFrame? parsedFrame)
ValueTracking\ValueTracker.OperationCollector.cs (1)
279private static bool IsContainedIn<TContainingOperation>(IOperation? operation, [NotNullWhen(returnValue: true)] out TContainingOperation? containingOperation) where TContainingOperation : IOperation
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.LanguageServer.Protocol (17)
Extensions\Extensions.cs (1)
240private static bool TryGetVSCompletionListSetting(ClientCapabilities clientCapabilities, [NotNullWhen(returnValue: true)] out VSInternalCompletionListSetting? completionListSetting)
Features\CodeFixes\CodeFixService.cs (3)
367private bool TryGetWorkspaceFixersMap(TextDocument document, [NotNullWhen(true)] out ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>? fixerMap) 393private bool TryGetWorkspaceFixersPriorityMap(TextDocument document, [NotNullWhen(true)] out Lazy<ImmutableDictionary<CodeFixProvider, int>>? fixersPriorityMap) 408[NotNullWhen(returnValue: true)] out CodeFixProvider? fixer)
Features\Diagnostics\DiagnosticDataExtensions.cs (2)
18internal static bool TryGetUnnecessaryDataLocations(this DiagnosticData diagnosticData, [NotNullWhen(true)] out ImmutableArray<DiagnosticDataLocation>? unnecessaryLocations) 52this DiagnosticData diagnosticData, [NotNullWhen(true)] out string? unnecessaryIndices)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (1)
42public bool TryGetProjectState(ProjectId projectId, [NotNullWhen(true)] out ProjectState? state)
Handler\Completion\Extensions.cs (1)
52[NotNullWhen(true)] out CompletionListCache.CacheEntry? cacheEntry)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
85protected abstract bool TryCreateUnchangedReport(TextDocumentIdentifier identifier, string resultId, [NotNullWhen(true)] out TReport? report);
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
50protected override bool TryCreateUnchangedReport(TextDocumentIdentifier identifier, string resultId, [NotNullWhen(true)] out VSInternalWorkspaceDiagnosticReport[]? report)
ILanguageInfoProvider.cs (1)
23bool TryGetLanguageInformation(Uri uri, string? lspLanguageId, [NotNullWhen(true)] out LanguageInformation? languageInformation);
LanguageInfoProvider.cs (1)
47public bool TryGetLanguageInformation(Uri uri, string? lspLanguageId, [NotNullWhen(true)] out LanguageInformation? languageInformation)
LspServices\LspServices.cs (1)
121public bool TryGetService(Type type, [NotNullWhen(true)] out object? service)
RoslynLanguageServer.cs (1)
168public override bool TryGetLanguageForRequest(string methodName, object? serializedParameters, [NotNullWhen(true)] out string? language)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (1)
176public virtual bool TryGetLanguageForRequest(string methodName, object? serializedRequest, [NotNullWhen(true)] out string? language)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\ILspServices.cs (1)
19bool TryGetService(Type type, [NotNullWhen(true)] out object? service);
Workspaces\LspWorkspaceManager.cs (1)
539internal bool TryGetLanguageForUri(Uri uri, [NotNullWhen(true)] out string? language)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1990private static bool IsTopLevelMainMethod([NotNullWhen(true)] this ISymbol? symbol)
Microsoft.CodeAnalysis.VisualBasic.Features (8)
DocumentationComments\VisualBasicDocumentationCommentSnippetService.vb (1)
142Protected Overrides Function IsSingleExteriorTrivia(documentationComment As DocumentationCommentTriviaSyntax, <NotNullWhen(True)> ByRef existingCommentText As String) As Boolean
EditAndContinue\DeclarationBody\FieldOrPropertyDeclarationBody.vb (1)
104Public Overrides Function TryMatchActiveStatement(newBody As DeclarationBody, oldStatement As SyntaxNode, ByRef statementPart As Integer, <NotNullWhen(True)> ByRef newStatement As SyntaxNode) As Boolean
EditAndContinue\DeclarationBody\MethodBody.vb (1)
47Public Overrides Function TryMatchActiveStatement(newBody As DeclarationBody, oldStatement As SyntaxNode, ByRef statementPart As Integer, <NotNullWhen(True)> ByRef newStatement As SyntaxNode) As Boolean
EditAndContinue\DeclarationBody\VisualBasicLambdaBody.vb (1)
78Public Overrides Function TryMatchActiveStatement(newBody As DeclarationBody, oldStatement As SyntaxNode, ByRef statementPart As Integer, <NotNullWhen(True)> ByRef newStatement As SyntaxNode) As Boolean
FullyQualify\VisualBasicFullyQualifyService.vb (1)
25Protected Overrides Function CanFullyQualify(node As SyntaxNode, <NotNullWhen(True)> ByRef simpleName As SimpleNameSyntax) As Boolean
Rename\VisualBasicRenameIssuesService.vb (1)
19Public Function CheckLanguageSpecificIssues(semantic As SemanticModel, symbol As ISymbol, triggerToken As SyntaxToken, <NotNullWhen(True)> ByRef langError As String) As Boolean Implements IRenameIssuesService.CheckLanguageSpecificIssues
src\Analyzers\VisualBasic\Analyzers\UseCoalesceExpression\VisualBasicUseCoalesceExpressionForIfNullStatementCheckDiagnosticAnalyzer.vb (2)
40Protected Overrides Function IsNullCheck(condition As ExpressionSyntax, <NotNullWhen(True)> ByRef checkedExpression As ExpressionSyntax) As Boolean 58Protected Overrides Function TryGetEmbeddedStatement(ifBlock As MultiLineIfBlockSyntax, <NotNullWhen(True)> ByRef whenTrueStatement As StatementSyntax) As Boolean
Microsoft.CodeAnalysis.Workspaces (446)
Diagnostics\DiagnosticAnalyzerInfoCache.cs (1)
135public bool TryGetDescriptorForDiagnosticId(string diagnosticId, [NotNullWhen(true)] out DiagnosticDescriptor? descriptor)
Diagnostics\DiagnosticData.cs (1)
293public static bool TryCreate(DiagnosticDescriptor descriptor, string[] messageArguments, Project project, [NotNullWhen(true)] out DiagnosticData? diagnosticData)
Differencing\AbstractSyntaxComparer.cs (1)
59protected internal override bool TryGetParent(SyntaxNode node, [NotNullWhen(true)] out SyntaxNode? parent)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
78[NotNullWhen(returnValue: true)] out string? result)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (3)
18private static bool ShouldFindReferencesInGlobalSuppressions(ISymbol symbol, [NotNullWhen(returnValue: true)] out string? documentationCommentId) 252[NotNullWhen(true)] string? docCommentId, 334[NotNullWhen(true)] string? docCommentId,
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
217async ValueTask<bool> HasInheritanceRelationshipSingleAsync(ISymbol searchSymbol, [NotNullWhen(true)] ISymbol? candidate)
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
188protected static bool IsSymbolObsolete([NotNullWhen(true)] ISymbol? symbol)
PatternMatching\PatternMatcher.cs (1)
108private bool SkipMatch([NotNullWhen(false)] string? candidate)
PatternMatching\PatternMatcherExtensions.cs (1)
19public static bool Matches(this PatternMatcher matcher, [NotNullWhen(true)] string? candidate)
ReassignedVariable\AbstractReassignedVariableService.cs (1)
155bool IsSymbolReassigned(SemanticModel semanticModel, [NotNullWhen(true)] ISymbol? symbol)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
44public abstract bool TryGetExplicitTypeOfLambdaParameter(SyntaxNode lambdaSyntax, int ordinalInLambda, [NotNullWhen(returnValue: true)] out ITypeSymbol explicitLambdaParameterType);
Remote\RemoteArguments.cs (2)
73[NotNullWhen(true)] out SerializableSymbolAndProjectId? result) 87[NotNullWhen(true)] out SerializableSymbolAndProjectId? result)
Remote\RemoteSupportedLanguages.cs (1)
11public static bool IsSupported([NotNullWhen(true)] this string? language)
Serialization\SerializerService_Reference.cs (1)
40private static bool TryGetAnalyzerImageReferenceFromGuid(Guid guid, [NotNullWhen(true)] out AnalyzerImageReference? imageReference)
Shared\Extensions\ISymbolExtensions_2.cs (1)
11public static bool IsImplicitValueParameter([NotNullWhen(returnValue: true)] this ISymbol? symbol)
src\Compilers\Core\Portable\DiagnosticAnalyzer\DictionaryAnalyzerConfigOptions.cs (1)
24public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value)
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\UnicodeCharacterUtilities.cs (1)
91public static bool IsValidIdentifier([NotNullWhen(returnValue: true)] string? name)
src\Compilers\Core\Portable\SourceGeneration\GeneratedCodeUtilities.cs (1)
61private static bool IsGeneratedCodeFile([NotNullWhen(returnValue: true)] string? filePath)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
84public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (4)
16public static bool TryParseStringEditorConfigCodeStyleOption(string arg, CodeStyleOption2<string> defaultValue, [NotNullWhen(true)] out CodeStyleOption2<string>? option) 52string arg, [NotNullWhen(true)] out string? value) 63string arg, NotificationOption2 defaultNotification, [NotNullWhen(true)] out string? value, [NotNullWhen(true)] out NotificationOption2 notification)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (5)
22public bool TryGetRoot(TIntervalTree tree, [NotNullWhen(true)] out TNode? root); 23public bool TryGetLeftNode(TIntervalTree tree, TNode node, [NotNullWhen(true)] out TNode? leftNode); 24public bool TryGetRightNode(TIntervalTree tree, TNode node, [NotNullWhen(true)] out TNode? rightNode); 114[NotNullWhen(true)] out TNode? right) where TIntrospector : struct, IIntervalIntrospector<T> 142[NotNullWhen(true)] out TNode? left) where TIntrospector : struct, IIntervalIntrospector<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (3)
157public bool TryGetRoot(MutableIntervalTree<T> tree, [NotNullWhen(true)] out Node? root) 163public bool TryGetLeftNode(MutableIntervalTree<T> tree, Node node, [NotNullWhen(true)] out Node? leftNode) 169public bool TryGetRightNode(MutableIntervalTree<T> tree, Node node, [NotNullWhen(true)] out Node? rightNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Diagnostics\StructuredAnalyzerConfigOptions.cs (2)
35public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value) 58public static bool TryGetStructuredOptions(AnalyzerConfigOptions configOptions, [NotNullWhen(true)] out StructuredAnalyzerConfigOptions? options)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigFile.cs (4)
32[NotNullWhen(true)] out Section? sectionResult) 41[NotNullWhen(true)] out Section? sectionResult) 58[NotNullWhen(true)] out Section? sectionResult) 74[NotNullWhen(true)] out Section? sectionResult)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
43public static bool HasEventHandlerSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? eventArgsType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (2)
53public static bool IsContainedWithin([NotNullWhen(returnValue: true)] this INamedTypeSymbol? symbol, INamedTypeSymbol outer) 668public static bool IsCollectionBuilderAttribute([NotNullWhen(true)] this INamedTypeSymbol? type)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (49)
104bool TryFindLooseMatch(ISymbol symbol, INamedTypeSymbol baseType, [NotNullWhen(true)] out ISymbol? looseMatch) 174public static bool IsOverridable([NotNullWhen(true)] this ISymbol? symbol) 181public static bool IsImplementableMember([NotNullWhen(true)] this ISymbol? symbol) 223public static bool IsErrorType([NotNullWhen(true)] this ISymbol? symbol) 226public static bool IsModuleType([NotNullWhen(true)] this ISymbol? symbol) 229public static bool IsInterfaceType([NotNullWhen(true)] this ISymbol? symbol) 232public static bool IsArrayType([NotNullWhen(true)] this ISymbol? symbol) 235public static bool IsTupleType([NotNullWhen(true)] this ISymbol? symbol) 238public static bool IsAnonymousFunction([NotNullWhen(true)] this ISymbol? symbol) 241public static bool IsKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind) 244public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind) 247public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2) 253public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2, SymbolKind kind3) 259public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, params SymbolKind[] kinds) 265public static bool IsReducedExtension([NotNullWhen(true)] this ISymbol? symbol) 268public static bool IsEnumMember([NotNullWhen(true)] this ISymbol? symbol) 274public static bool IsLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 277public static bool IsAnonymousOrLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 280public static bool IsModuleMember([NotNullWhen(true)] this ISymbol? symbol) 283public static bool IsConstructor([NotNullWhen(true)] this ISymbol? symbol) 286public static bool IsStaticConstructor([NotNullWhen(true)] this ISymbol? symbol) 289public static bool IsDestructor([NotNullWhen(true)] this ISymbol? symbol) 292public static bool IsUserDefinedOperator([NotNullWhen(true)] this ISymbol? symbol) 295public static bool IsConversion([NotNullWhen(true)] this ISymbol? symbol) 298public static bool IsOrdinaryMethod([NotNullWhen(true)] this ISymbol? symbol) 301public static bool IsOrdinaryMethodOrLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 304public static bool IsDelegateType([NotNullWhen(true)] this ISymbol? symbol) 307public static bool IsAnonymousType([NotNullWhen(true)] this ISymbol? symbol) 310public static bool IsNormalAnonymousType([NotNullWhen(true)] this ISymbol? symbol) 313public static bool IsAnonymousDelegateType([NotNullWhen(true)] this ISymbol? symbol) 316public static bool IsAnonymousTypeProperty([NotNullWhen(true)] this ISymbol? symbol) 319public static bool IsTupleField([NotNullWhen(true)] this ISymbol? symbol) 322public static bool IsIndexer([NotNullWhen(true)] this ISymbol? symbol) 325public static bool IsWriteableFieldOrProperty([NotNullWhen(true)] this ISymbol? symbol) 333public static bool IsRequired([NotNullWhen(true)] this ISymbol? symbol) 400public static bool IsFunctionValue([NotNullWhen(true)] this ISymbol? symbol) 403public static bool IsThisParameter([NotNullWhen(true)] this ISymbol? symbol) 417public static bool IsParams([NotNullWhen(true)] this ISymbol? symbol) 472public static bool IsAttribute([NotNullWhen(true)] this ISymbol? symbol) 481public static bool RequiresUnsafeModifier([NotNullWhen(true)] this ISymbol? member) 531public static bool IsStaticType([NotNullWhen(true)] this ISymbol? symbol) 535[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 605public static bool IsAccessor([NotNullWhen(true)] this ISymbol? symbol) 608public static bool IsPropertyAccessor([NotNullWhen(true)] this ISymbol? symbol) 611public static bool IsEventAccessor([NotNullWhen(true)] this ISymbol? symbol) 636public static bool IsAwaitableNonDynamic([NotNullWhen(true)] this ISymbol? symbol, SemanticModel semanticModel, int position) 775public static bool IsKind<TSymbol>(this ISymbol symbol, SymbolKind kind, [NotNullWhen(true)] out TSymbol? result) where TSymbol : class, ISymbol 808public static bool HasAttribute([NotNullWhen(true)] this ISymbol? symbol, [NotNullWhen(true)] INamedTypeSymbol? attributeClass)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (29)
22public static bool IsIntegralType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 25public static bool IsSignedIntegralType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 28public static bool CanAddNullCheck([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 55public static bool IsAbstractClass([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 58public static bool IsSystemVoid([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 61public static bool IsNullable([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 64public static bool IsNonNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 68[NotNullWhen(true)] this ITypeSymbol? symbol, 69[NotNullWhen(true)] out ITypeSymbol? underlyingType) 81public static bool IsModuleType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 84public static bool IsInterfaceType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 87public static bool IsDelegateType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 90public static bool IsFunctionPointerType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 93public static bool IsStructType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 96public static bool IsAnonymousType([NotNullWhen(returnValue: true)] this INamedTypeSymbol? symbol) 247public static bool IsFormattableStringOrIFormattable([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 284public static bool IsNumericType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 313public static bool ContainsAnonymousType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 372public static bool IsSpecialType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 597public static bool IsOrDerivesFromExceptionType([NotNullWhen(returnValue: true)] this ITypeSymbol? type, Compilation compilation) 630public static bool IsEnumType([NotNullWhen(true)] this ITypeSymbol? type) 633public static bool IsEnumType([NotNullWhen(true)] this ITypeSymbol? type, [NotNullWhen(true)] out INamedTypeSymbol? enumType) 724public static bool IsDisposable([NotNullWhen(returnValue: true)] this ITypeSymbol? type, [NotNullWhen(returnValue: true)] ITypeSymbol? iDisposableType) 743public static bool IsSpanOrReadOnlySpan([NotNullWhen(true)] this ITypeSymbol? type) 746public static bool IsSpan([NotNullWhen(true)] this ITypeSymbol? type) 754public static bool IsReadOnlySpan([NotNullWhen(true)] this ISymbol? symbol) 762public static bool IsInlineArray([NotNullWhen(true)] this ITypeSymbol? type)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (1)
88public static bool TryRemoveFirst<T, TArg>(this IList<T> list, Func<T, TArg, bool> selector, TArg arg, [NotNullWhen(true)] out T? removedItem)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\OperationExtensions.cs (3)
258public static bool IsInLeftOfDeconstructionAssignment(this IOperation operation, [NotNullWhen(true)] out IDeconstructionAssignmentOperation? deconstructionAssignment) 356public static bool HasAnyOperationDescendant(this IOperation operationBlock, Func<IOperation, bool> predicate, [NotNullWhen(true)] out IOperation? foundOperation) 398public static bool IsSingleThrowNotImplementedOperation([NotNullWhen(true)] this IOperation? firstBlock)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
185[NotNullWhen(true)] out string? parameterName)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
129public static bool CheckParent<T>([NotNullWhen(returnValue: true)] this SyntaxNode? node, Func<T, bool> valueChecker) where T : SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (1)
14public static bool AsNode(this SyntaxNodeOrToken nodeOrToken, [NotNullWhen(true)] out SyntaxNode? node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
18public static bool OverlapsHiddenPosition([NotNullWhen(returnValue: true)] this SyntaxTree? tree, TextSpan span, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (2)
222[NotNullWhen(true)] out IList<TokenData>? tokenData) 247[NotNullWhen(true)] out IList<TokenData>? tokenData,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.Changes.cs (1)
36public readonly bool TryGet(int key, [NotNullWhen(true)] out TriviaData? triviaInfo)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
139protected bool IsNullOrWhitespace([NotNullWhen(true)] string? text)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (1)
43private static bool TryGetActiveLogger(FunctionId functionId, [NotNullWhen(true)] out ILogger? activeLogger)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingRule.cs (2)
22[NotNullWhen(true)] out NamingRule? namingRule, 49[NotNullWhen(true)] out NamingStyleOption? rule,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
23[NotNullWhen(true)] out NamingScheme? namingScheme)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_SymbolSpec.cs (2)
26[NotNullWhen(true)] out ApplicableSymbolInfo? applicableSymbolInfo) 52[NotNullWhen(true)] out SymbolSpecification? symbolSpec)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingRule.cs (1)
26public override bool Equals([NotNullWhen(true)] object? obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (3)
13public abstract bool IsScopeBlock([NotNullWhen(true)] SyntaxNode? node); 14public abstract bool IsExecutableBlock([NotNullWhen(true)] SyntaxNode? node); 20public abstract bool IsStatementContainer([NotNullWhen(true)] SyntaxNode? node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\IBlockFacts.cs (3)
22bool IsScopeBlock([NotNullWhen(true)] SyntaxNode? node); 37bool IsExecutableBlock([NotNullWhen(true)] SyntaxNode? node); 46bool IsStatementContainer([NotNullWhen(true)] SyntaxNode? node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (9)
23public abstract bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 24public abstract bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration); 25public abstract bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter); 26public abstract bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method); 27public abstract bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction); 28public abstract bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration); 29public abstract bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement); 30public abstract bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement); 31public abstract bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\IHeaderFacts.cs (9)
16bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 18bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration); 19bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter); 20bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method); 21bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction); 22bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration); 23bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement); 24bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement); 25bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\IHeaderFactsExtensions.cs (1)
14public static bool IsOnTypeHeader(this IHeaderFacts headerFacts, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (9)
53bool IsWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 60bool IsOnlyWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 61bool IsInOutContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 62bool IsInRefContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 63bool IsInInContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 65bool CanReplaceWithRValue(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? expression, CancellationToken cancellationToken); 74bool TryGetSpeculativeSemanticModel(SemanticModel oldSemanticModel, SyntaxNode oldNode, SyntaxNode newNode, [NotNullWhen(true)] out SemanticModel? speculativeModel); 102bool IsInsideNameOfExpression(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 109bool IsInExpressionTree(SemanticModel semanticModel, SyntaxNode node, [NotNullWhen(true)] INamedTypeSymbol? expressionType, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFactsExtensions.cs (2)
111private static bool IsUserDefinedOperator([NotNullWhen(returnValue: true)] ISymbol? symbol) 118private static bool IsFloatingPoint([NotNullWhen(returnValue: true)] ITypeSymbol? type)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (76)
120bool IsPredefinedType([NotNullWhen(true)] SyntaxNode? node); 121bool IsPredefinedType([NotNullWhen(true)] SyntaxNode? node, PredefinedType type); 171bool IsUsingOrExternOrImport([NotNullWhen(true)] SyntaxNode? node); 172bool IsGlobalAssemblyAttribute([NotNullWhen(true)] SyntaxNode? node); 173bool IsGlobalModuleAttribute([NotNullWhen(true)] SyntaxNode? node); 174bool IsDeclaration([NotNullWhen(true)] SyntaxNode? node); 177bool IsUsingAliasDirective([NotNullWhen(true)] SyntaxNode? node); 191bool IsEntirelyWithinStringOrCharOrNumericLiteral([NotNullWhen(true)] SyntaxTree? syntaxTree, int position, CancellationToken cancellationToken); 195bool TryGetExternalSourceInfo([NotNullWhen(true)] SyntaxNode? directive, out ExternalSourceInfo info); 197bool IsDeclarationExpression([NotNullWhen(true)] SyntaxNode? node); 199bool IsConversionExpression([NotNullWhen(true)] SyntaxNode? node); 200bool IsCastExpression([NotNullWhen(true)] SyntaxNode? node); 202bool IsExpressionOfForeach([NotNullWhen(true)] SyntaxNode? node); 208bool IsVerbatimInterpolatedStringExpression([NotNullWhen(true)] SyntaxNode? node); 211bool IsLeftSideOfAssignment([NotNullWhen(true)] SyntaxNode? node); 213bool IsAnyAssignmentStatement([NotNullWhen(true)] SyntaxNode? statement); 214bool IsSimpleAssignmentStatement([NotNullWhen(true)] SyntaxNode? statement); 219bool IsLeftSideOfAnyAssignment([NotNullWhen(true)] SyntaxNode? node); 221bool IsLeftSideOfCompoundAssignment([NotNullWhen(true)] SyntaxNode? node); 224bool IsInferredAnonymousObjectMemberDeclarator([NotNullWhen(true)] SyntaxNode? node); 225bool IsOperandOfIncrementExpression([NotNullWhen(true)] SyntaxNode? node); 226bool IsOperandOfIncrementOrDecrementExpression([NotNullWhen(true)] SyntaxNode? node); 228bool IsLeftSideOfDot([NotNullWhen(true)] SyntaxNode? node); 245bool IsLeftSideOfExplicitInterfaceSpecifier([NotNullWhen(true)] SyntaxNode? node); 247bool IsNameOfSimpleMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 248bool IsNameOfAnyMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 249bool IsNameOfMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node); 282bool IsPointerMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 284bool IsNamedArgument([NotNullWhen(true)] SyntaxNode? node); 285bool IsNameOfNamedArgument([NotNullWhen(true)] SyntaxNode? node); 287bool IsParameterList([NotNullWhen(true)] SyntaxNode? node); 297bool IsElementBindingExpression([NotNullWhen(true)] SyntaxNode? node); 298bool IsMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node); 299bool IsPostfixUnaryExpression([NotNullWhen(true)] SyntaxNode? node); 310bool IsSimpleArgument([NotNullWhen(true)] SyntaxNode? node); 311bool IsArgument([NotNullWhen(true)] SyntaxNode? node); 312bool IsAttributeArgument([NotNullWhen(true)] SyntaxNode? node); 326bool IsUsingDirectiveName([NotNullWhen(true)] SyntaxNode? node); 332bool IsAttributeNamedArgumentIdentifier([NotNullWhen(true)] SyntaxNode? node); 333bool IsMemberInitializerNamedAssignmentIdentifier([NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? initializedInstance); 334bool IsAnyInitializerExpression([NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? creationExpression); 336bool IsDirective([NotNullWhen(true)] SyntaxNode? node); 337bool IsStatement([NotNullWhen(true)] SyntaxNode? node); 338bool IsExecutableStatement([NotNullWhen(true)] SyntaxNode? node); 339bool IsGlobalStatement([NotNullWhen(true)] SyntaxNode? node); 342bool IsDeconstructionAssignment([NotNullWhen(true)] SyntaxNode? node); 343bool IsDeconstructionForEachStatement([NotNullWhen(true)] SyntaxNode? node); 358bool IsMethodBody([NotNullWhen(true)] SyntaxNode? node); 368bool IsElementAccessExpression([NotNullWhen(true)] SyntaxNode? node); 389bool IsInNamespaceOrTypeContext([NotNullWhen(true)] SyntaxNode? node); 391bool IsBaseTypeList([NotNullWhen(true)] SyntaxNode? node); 393bool IsInConstantContext([NotNullWhen(true)] SyntaxNode? node); 395bool IsMethodLevelMember([NotNullWhen(true)] SyntaxNode? node); 396bool IsTopLevelNodeWithMembers([NotNullWhen(true)] SyntaxNode? node); 423bool ContainsInMemberBody([NotNullWhen(true)] SyntaxNode? node, TextSpan span); 461bool IsNameOfSubpattern([NotNullWhen(true)] SyntaxNode? node); 464bool IsAnyPattern([NotNullWhen(true)] SyntaxNode? node); 465bool IsBinaryPattern([NotNullWhen(true)] SyntaxNode? node); 466bool IsUnaryPattern([NotNullWhen(true)] SyntaxNode? node); 492bool IsParameterNameXmlElementSyntax([NotNullWhen(true)] SyntaxNode? node); 500bool IsAnonymousFunctionExpression([NotNullWhen(true)] SyntaxNode? node); 501bool IsBaseNamespaceDeclaration([NotNullWhen(true)] SyntaxNode? node); 502bool IsBinaryExpression([NotNullWhen(true)] SyntaxNode? node); 503bool IsLiteralExpression([NotNullWhen(true)] SyntaxNode? node); 504bool IsMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 505bool IsMethodDeclaration([NotNullWhen(true)] SyntaxNode? node); 506bool IsSimpleName([NotNullWhen(true)] SyntaxNode? node); 507bool IsAnyName([NotNullWhen(true)] SyntaxNode? node); 508bool IsAnyType([NotNullWhen(true)] SyntaxNode? node); 510bool IsNamedMemberInitializer([NotNullWhen(true)] SyntaxNode? node); 511bool IsElementAccessInitializer([NotNullWhen(true)] SyntaxNode? node); 513bool IsObjectMemberInitializer([NotNullWhen(true)] SyntaxNode? node); 514bool IsObjectCollectionInitializer([NotNullWhen(true)] SyntaxNode? node); 562bool IsEqualsValueOfPropertyDeclaration([NotNullWhen(true)] SyntaxNode? node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (90)
23public static bool IsMemberInitializerNamedAssignmentIdentifier(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 610public static bool IsExpressionOfAwaitExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 619public static bool IsExpressionOfInvocationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 629public static bool IsExpressionOfMemberAccessExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 639public static bool IsNameOfAttribute(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 648public static bool IsRightOfQualifiedName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 658public static bool IsRightOfAliasQualifiedName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 668public static bool IsTypeOfObjectCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 705public static bool IsSkippedTokensTrivia(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 745public static bool IsAliasQualifiedName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 748public static bool IsGenericName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 751public static bool IsIdentifierName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 754public static bool IsQualifiedName(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 761public static bool IsTupleType(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 768public static bool IsCharacterLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 771public static bool IsDefaultLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 774public static bool IsFalseLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 777public static bool IsNumericLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 780public static bool IsNullLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 783public static bool IsStringLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 786public static bool IsTrueLiteralExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 793public static bool IsArrayCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 796public static bool IsAwaitExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 799public static bool IsBaseExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 802public static bool IsConditionalExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 805public static bool IsConditionalAccessExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 808public static bool IsFieldExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 811public static bool IsImplicitArrayCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 814public static bool IsImplicitObjectCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 817public static bool IsIndexExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 820public static bool IsInterpolatedStringExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 823public static bool IsInterpolation(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 826public static bool IsInterpolatedStringText(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 829public static bool IsInvocationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 832public static bool IsIsTypeExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 835public static bool IsIsNotTypeExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 838public static bool IsIsPatternExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 841public static bool IsLogicalAndExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 844public static bool IsLogicalOrExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 847public static bool IsLogicalNotExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 850public static bool IsObjectCreationExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 853public static bool IsParenthesizedExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 856public static bool IsQueryExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 859public static bool IsRangeExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 862public static bool IsRefExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 865public static bool IsSimpleMemberAccessExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 868public static bool IsThisExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 871public static bool IsThrowExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 874public static bool IsTupleExpression(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 884public static bool IsAndPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 887public static bool IsConstantPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 890public static bool IsDeclarationPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 893public static bool IsListPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 896public static bool IsNotPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 899public static bool IsOrPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 902public static bool IsParenthesizedPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 905public static bool IsRecursivePattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 908public static bool IsRelationalPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 911public static bool IsTypePattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 914public static bool IsVarPattern(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 921public static bool IsExpressionStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 924public static bool IsForEachStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 927public static bool IsForStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 930public static bool IsIfStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 933public static bool IsLocalDeclarationStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 936public static bool IsLocalFunctionStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 939public static bool IsLockStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 942public static bool IsReturnStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 945public static bool IsThrowStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 948public static bool IsUsingStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 951public static bool IsWhileStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 954public static bool IsYieldReturnStatement(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 961public static bool IsAttribute(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 964public static bool IsClassDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 967public static bool IsConstructorDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 970public static bool IsEnumDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 973public static bool IsGlobalAttribute(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 976public static bool IsInterfaceDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 979public static bool IsParameter(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 982public static bool IsTypeConstraint(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 985public static bool IsVariableDeclarator(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 988public static bool IsFieldDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 991public static bool IsPropertyDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 994public static bool IsStructDeclaration(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 997public static bool IsTypeArgumentList(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1004public static bool IsElseClause(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1006public static bool IsEqualsValueClause(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1013public static bool IsImplicitElementAccess(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1016public static bool IsIndexerMemberCref(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node) 1019public static bool IsPrimaryConstructorBaseType(this ISyntaxFacts syntaxFacts, [NotNullWhen(true)] SyntaxNode? node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SimplifierOptions.cs (1)
42public bool TryGetQualifyMemberAccessOption(SymbolKind symbolKind, [NotNullWhen(true)] out CodeStyleOption2<bool>? option)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
117[NotNullWhen(true)] out SemanticModel? semanticModel)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (5)
101protected abstract bool ExpressionMightReferenceMember([NotNullWhen(true)] SyntaxNode? node); 118protected abstract bool IsParenthesizedExpression([NotNullWhen(true)] SyntaxNode? node); 730private bool ReplacementBreaksSystemObjectMethodResolution(SyntaxNode currentOriginalNode, SyntaxNode currentReplacedNode, [NotNullWhen(true)] SyntaxNode? previousOriginalNode, [NotNullWhen(true)] SyntaxNode? previousReplacedNode) 754private static bool IsSymbolSystemObjectInstanceMethod([NotNullWhen(true)] ISymbol? symbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
41public bool TryGetValue(TKey key, [NotNullWhen(true)] out TValue? value) 44public bool TryGetKey(TValue value, [NotNullWhen(true)] out TKey? key)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumerableConditionalWeakTable.cs (1)
25public bool TryGetValue(TKey key, [NotNullWhen(true)] out TValue? value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IntegerUtilities.cs (1)
81public static bool IsIntegral([NotNullWhen(true)] object? value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (2)
136public bool TryResolve<TNode>(SyntaxTree syntaxTree, CancellationToken cancellationToken, [NotNullWhen(true)] out TNode? node) 142public bool TryResolve<TNode>(SyntaxNode? root, [NotNullWhen(true)] out TNode? node)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (2)
180[NotNullWhen(true)] out SyntaxNode? declaration, 220[NotNullWhen(true)] out SyntaxNode? declaration,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationHelpers.cs (2)
83public static bool IsSpecialType([NotNullWhen(true)] ITypeSymbol? type, SpecialType specialType) 116ISymbol symbol, string commentToken, [NotNullWhen(true)] out string? comment, CancellationToken cancellationToken = default)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (10)
24public abstract bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 573public bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration) 576public bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration) 579public bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter) 582public bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method) 585public bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction) 588public bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration) 591public bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement) 594public bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement) 597public bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\IRefactoringHelpersService.cs (1)
25bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ArrayExtensions.cs (1)
12public static bool IsNullOrEmpty<T>([NotNullWhen(returnValue: false)] this T[]? array)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (2)
270private static bool TryGetValue(IDictionary<string, string>? dictionary, string key, [NotNullWhen(true)] out string? value) 278private static bool TryGetValue(IDictionary<string, ISymbol>? dictionary, string key, [NotNullWhen(true)] out string? value)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\InitializeParameterHelpersCore.cs (6)
118[NotNullWhen(true)] out ITupleOperation? targetTuple, 119[NotNullWhen(true)] out ITupleOperation? valueTuple) 147[NotNullWhen(true)] out ISymbol? fieldOrProperty) 163public static bool IsFieldOrPropertyAssignment(IOperation statement, INamedTypeSymbol containingType, [NotNullWhen(true)] out IAssignmentOperation? assignmentExpression) 168[NotNullWhen(true)] out IAssignmentOperation? assignmentExpression, 169[NotNullWhen(true)] out ISymbol? fieldOrProperty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
94public static bool IsValidSymbolInfo([NotNullWhen(true)] ISymbol? symbol)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\Simplifiers\AbstractMemberAccessExpressionSimplifier.cs (1)
36[NotNullWhen(true)] out TThisExpressionSyntax? thisExpression,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\Simplifiers\AbstractSimplifier.cs (1)
20[NotNullWhen(true)] out TSimplifiedSyntax? replacementNode,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
91static bool InSource([NotNullWhen(true)] ISymbol? symbol)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
129private bool TryGetService(Type serviceType, [NotNullWhen(true)] out Lazy<ILanguageService, LanguageServiceMetadata>? lazyService, out bool usesFactory)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
138private bool TryGetService(Type serviceType, [NotNullWhen(true)] out Lazy<IWorkspaceService, WorkspaceServiceMetadata>? lazyService, out bool usesFactory) 211internal bool TryGetLanguageServices(string languageName, [NotNullWhen(true)] out MefLanguageServices? languageServices)
Workspace\Host\DocumentService\Extensions.cs (4)
13public static bool CanApplyChange([NotNullWhen(returnValue: true)] this TextDocument? document) 16public static bool CanApplyChange([NotNullWhen(returnValue: true)] this TextDocumentState? document) 19public static bool SupportsDiagnostics([NotNullWhen(returnValue: true)] this TextDocument? document) 22public static bool SupportsDiagnostics([NotNullWhen(returnValue: true)] this TextDocumentState? document)
Workspace\Solution\Document.cs (4)
79public bool TryGetSyntaxTree([NotNullWhen(returnValue: true)] out SyntaxTree? syntaxTree) 213public bool TryGetSyntaxRoot([NotNullWhen(returnValue: true)] out SyntaxNode? root) 259public bool TryGetSemanticModel([NotNullWhen(returnValue: true)] out SemanticModel? semanticModel) 270internal bool TryGetNullableDisabledSemanticModel([NotNullWhen(returnValue: true)] out SemanticModel? semanticModel)
Workspace\Solution\DocumentState.cs (1)
582public bool TryGetSyntaxTree([NotNullWhen(returnValue: true)] out SyntaxTree? syntaxTree)
Workspace\Solution\DocumentState_LinkedFileReuse.cs (2)
51public bool TryGetValue([NotNullWhen(true)] out TreeAndVersion? value) 135[NotNullWhen(true)] out TreeAndVersion? newTreeAndVersion)
Workspace\Solution\DocumentState_TreeTextSource.cs (1)
43public bool TryGetValue(LoadTextOptions options, [NotNullWhen(true)] out TextAndVersion? value)
Workspace\Solution\Project.cs (1)
482public bool TryGetCompilation([NotNullWhen(returnValue: true)] out Compilation? compilation)
Workspace\Solution\ProjectState.cs (1)
546public override bool TryGetValue(string key, [NotNullWhen(true)] out string? value)
Workspace\Solution\ProjectState_Checksum.cs (1)
18public bool TryGetStateChecksums([NotNullWhen(true)] out ProjectStateChecksums? stateChecksums)
Workspace\Solution\Solution.cs (4)
135public bool ContainsProject([NotNullWhen(returnValue: true)] ProjectId? projectId) 211public bool ContainsDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.SolutionState.ContainsDocument(documentId); 216public bool ContainsAdditionalDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.SolutionState.ContainsAdditionalDocument(documentId); 221public bool ContainsAnalyzerConfigDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) => this.SolutionState.ContainsAnalyzerConfigDocument(documentId);
Workspace\Solution\SolutionCompilationState.cs (2)
1085private bool TryGetCompilationTracker(ProjectId projectId, [NotNullWhen(returnValue: true)] out ICompilationTracker? tracker) 1116public bool TryGetCompilation(ProjectId projectId, [NotNullWhen(returnValue: true)] out Compilation? compilation)
Workspace\Solution\SolutionCompilationState.ICompilationTracker.cs (2)
35[NotNullWhen(true)] out Compilation? compilation, 73bool TryGetCompilation([NotNullWhen(true)] out Compilation? compilation);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (2)
105[NotNullWhen(true)] out Compilation? compilation, 197public bool TryGetCompilation([NotNullWhen(true)] out Compilation? compilation)
Workspace\Solution\SolutionCompilationState.RootedSymbolSet.cs (1)
95[NotNullWhen(true)] out Compilation? compilation,
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (2)
61[NotNullWhen(true)] out Compilation? compilation, 208public bool TryGetCompilation([NotNullWhen(true)] out Compilation? compilation)
Workspace\Solution\SolutionCompilationState_Checksum.cs (2)
36public bool TryGetStateChecksums([NotNullWhen(true)] out SolutionCompilationStateChecksums? stateChecksums) 39public bool TryGetStateChecksums(ProjectId projectId, [NotNullWhen(true)] out SolutionCompilationStateChecksums? stateChecksums)
Workspace\Solution\SolutionState.cs (4)
265public bool ContainsProject([NotNullWhen(returnValue: true)] ProjectId? projectId) 271public bool ContainsDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) 282public bool ContainsAdditionalDocument([NotNullWhen(returnValue: true)] DocumentId? documentId) 293public bool ContainsAnalyzerConfigDocument([NotNullWhen(returnValue: true)] DocumentId? documentId)
Workspace\Solution\SolutionState_Checksum.cs (2)
42public bool TryGetStateChecksums([NotNullWhen(true)] out SolutionStateChecksums? stateChecksums) 45public bool TryGetStateChecksums(ProjectId projectId, [NotNullWhen(true)] out SolutionStateChecksums? stateChecksums)
Workspace\Solution\SourceGeneratorExecutionVersion.cs (1)
77public override bool Equals([NotNullWhen(true)] object? obj)
Workspace\Solution\TextDocument.cs (1)
64public bool TryGetText([NotNullWhen(returnValue: true)] out SourceText? text)
Workspace\Solution\TextDocumentState.cs (2)
80public bool TryGetText([NotNullWhen(returnValue: true)] out SourceText? text) 97public bool TryGetTextAndVersion([NotNullWhen(true)] out TextAndVersion? textAndVersion)
Workspace\Solution\TextDocumentState_Checksum.cs (1)
18public bool TryGetStateChecksums([NotNullWhen(returnValue: true)] out DocumentStateChecksums? stateChecksums)
Workspace\Solution\TextDocumentStates.cs (1)
93public bool TryGetState(DocumentId documentId, [NotNullWhen(true)] out TState? state)
Workspace\Solution\VersionSource\ITreeAndVersionSource.cs (1)
19bool TryGetValue([NotNullWhen(true)] out TreeAndVersion? value);
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (2)
29private bool TryGetInitialSourceOrRecoverableText([NotNullWhen(true)] out ITextAndVersionSource? source, [NotNullWhen(false)] out RecoverableText? text)
Workspace\Solution\VersionSource\RecoverableTextAndVersion.RecoverableText.cs (2)
62private bool TryGetWeakValue([NotNullWhen(true)] out SourceText? value) 72private bool TryGetStrongOrWeakValue([NotNullWhen(true)] out SourceText? value)
Workspace\Solution\VersionSource\SimpleTreeAndVersionSource.cs (1)
32public bool TryGetValue([NotNullWhen(true)] out TreeAndVersion? value)
Workspace\Workspace_Registration.cs (1)
20public static bool TryGetWorkspace(SourceTextContainer textContainer, [NotNullWhen(true)] out Workspace? workspace)
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.CommonLanguageServerProtocol.Framework.Example (1)
ExampleLspServices.cs (1)
38public bool TryGetService(Type type, [NotNullWhen(true)] out object? service)
Microsoft.Extensions.Caching.Abstractions (1)
Hybrid\IHybridCacheSerializerFactory.cs (1)
19bool TryCreateSerializer<T>([NotNullWhen(true)] out IHybridCacheSerializer<T>? serializer);
Microsoft.Extensions.Caching.Hybrid (6)
Internal\DefaultHybridCache.cs (1)
265private bool TryGetExisting<T>(string key, [NotNullWhen(true)] out CacheItem<T>? value)
Internal\DefaultHybridCache.Debug.cs (1)
18internal bool DebugTryGetCacheItem(string key, [NotNullWhen(true)] out CacheItem? value)
Internal\DefaultHybridCache.Stampede.cs (1)
75[NotNullWhen(true)] out StampedeState<TState, T>? stampedeState)
Internal\DefaultHybridCache.StampedeKey.cs (1)
47public override bool Equals([NotNullWhen(true)] object? obj)
Internal\DefaultJsonSerializerFactory.cs (1)
12public bool TryCreateSerializer<T>([NotNullWhen(true)] out IHybridCacheSerializer<T>? serializer)
Internal\TagSet.cs (1)
177internal bool TryFind(ReadOnlySpan<char> span, [NotNullWhen(true)] out string? tag)
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.Maui (6)
Debugger\DebuggerDisplayHelpers.cs (1)
97 static bool HasValue([NotNullWhen(true)] object? value)
Graphics\PaintExtensions.cs (1)
25 public static bool IsNullOrEmpty([NotNullWhen(true)] this Paint? paint)
SoftInputExtensions.cs (3)
117 [NotNullWhen(true)] out PlatformView? platformView, 118 [NotNullWhen(true)] out IPlatformViewHandler? handler, 119 [NotNullWhen(true)] out IView? view)
WeakReferenceExtensions.cs (1)
8 internal static bool TryGetTarget<T>(this WeakReference self, [MaybeNullWhen(false), NotNullWhen(true)] out T? target)
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)
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
518public bool TryGetExistingJsonPointer(in JsonSchemaExporterContext context, [NotNullWhen(true)] out string? existingJsonPointer)
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 (74)
System\Private\Windows\BinaryFormat\Deserializer\DefaultTypeResolver.cs (1)
34public bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type)
System\Private\Windows\BinaryFormat\ITypeResolver.cs (1)
21bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type);
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)
24public static bool TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value) => 29public 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) 367public static bool TryGetPrimitiveArrayList(this SerializationRecord record, [NotNullWhen(true)] out object? value) 371static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 414public static bool TryGetPrimitiveArray(this SerializationRecord record, [NotNullWhen(true)] out object? value) 418static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 454public static bool TryGetPrimitiveHashtable(this SerializationRecord record, [NotNullWhen(true)] out Hashtable? hashtable) 464public static bool TryGetPrimitiveHashtable(this SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 468static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 528static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? exception) 548[NotNullWhen(true)] out object? value) 564[NotNullWhen(true)] out object? value) =>
System\Private\Windows\Ole\Composition.cs (4)
92[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 98[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 103[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 107[NotNullWhen(true), MaybeNullWhen(false)] out T data) =>
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (8)
253[NotNullWhen(true)] out T? data) 287[NotNullWhen(true)] out T? data) 347[NotNullWhen(true)] out T? data) 429[NotNullWhen(true)] out T? data) 590[NotNullWhen(true), MaybeNullWhen(false)] out T data) 605[NotNullWhen(true), MaybeNullWhen(false)] out T data) 617[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 621[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\Ole\TypeBinder.cs (1)
111public bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type)
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)
23internal 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.Windows.Core.Tests (2)
System\Private\Windows\Ole\BinaryFormatUtilitesTestsBase.cs (1)
24[NotNullWhen(true)] out T? @object);
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (1)
24[NotNullWhen(true)] out T? @object) where T : default
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)
2518public bool TryGetOrdinalCaseInsensitiveString(int childIndex, int exclusiveChildBound, out int nodesConsumed, [NotNullWhen(true)] out string? caseInsensitiveString, bool consumeZeroWidthNodes = false) 2791internal 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)
22public static bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type) 39public 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)
74internal virtual bool TryUnwrapUserDataObject([NotNullWhen(true)] out IDataObject? dataObject) 190[NotNullWhen(true), MaybeNullWhen(false)] out T data) 201[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 206[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 210[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 223[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 300[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.Analyzers.Tests (6)
CurrentReferences.cs (6)
89[NotNullWhen(true)] out string? tfm, 90[NotNullWhen(true)] out string? netCoreRefsVersion) 110private static bool GetRootFolderPath([NotNullWhen(true)] out string? root) 138private static bool TryGetSdkVersion(string rootFolderPath, [NotNullWhen(true)] out string? version) 150[NotNullWhen(true)] out string? tfm, 151[NotNullWhen(true)] out string? version)
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 (6)
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\Ole\BinaryFormatUtilitiesTests.cs (1)
22[NotNullWhen(true)] out T? @object) where T : default
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)
3 references to NotNullWhen
mscorlib (1)
mscorlib.cs (1)
67[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.NotNullWhenAttribute))]
netstandard (1)
netstandard.cs (1)
628[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.NotNullWhenAttribute))]
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
148[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Diagnostics.CodeAnalysis.NotNullWhenAttribute))]