2901 references to NotNullWhen
aspire (2)
DotNetCliRunner.cs (1)
334private static bool TryParsePackageVersionFromStdout(string stdout, [NotNullWhen(true)] out string? version)
Program.cs (1)
235static bool TrySetLocaleOverride(string localeOverride, [NotNullWhen(false)] out string? errorMessage)
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 (36)
Configuration\DashboardOptions.cs (6)
38internal bool TryParseOptions([NotNullWhen(false)] out string? errorMessage) 108internal bool TryParseOptions([NotNullWhen(false)] out string? errorMessage) 180internal bool TryParseOptions([NotNullWhen(false)] out string? errorMessage) 215public static bool TryParseBindingAddress(string address, [NotNullWhen(true)] out BindingAddress? bindingAddress) 280internal bool TryParseOptions([NotNullWhen(false)] out IEnumerable<string>? errorMessages) 321internal bool TryParseOptions([NotNullWhen(false)] out string? errorMessage)
ConsoleLogs\UrlParser.cs (1)
16public static bool TryParse(string? text, Func<string, string>? nonMatchFragmentCallback, [NotNullWhen(true)] out string? modifiedText)
DashboardWebApplication.cs (2)
478private static bool TryGetDashboardOptions(WebApplicationBuilder builder, IConfigurationSection dashboardConfigSection, [NotNullWhen(true)] out DashboardOptions? dashboardOptions, [NotNullWhen(false)] out IEnumerable<string>? failureMessages)
Model\DebugSessionHelpers.cs (2)
60[NotNullWhen(true)] out Uri? debugSessionUri, 61[NotNullWhen(true)] out string? token)
Model\IconResolver.cs (1)
45private static bool TryGetIcon(IconKey key, IconSize size, [NotNullWhen(true)] out CustomIcon? icon)
Model\Otlp\SpanWaterfallViewModel.cs (1)
48public bool MatchesFilter(string filter, Func<OtlpApplicationView, string> getResourceName, [NotNullWhen(true)] out IEnumerable<SpanWaterfallViewModel>? matchedDescendents)
Model\PauseManager.cs (3)
27public bool AreMetricsPaused([NotNullWhen(true)] out DateTime? pausedAt) 35public bool AreTracesPaused([NotNullWhen(true)] out DateTime? pausedAt) 43public bool AreStructuredLogsPaused([NotNullWhen(true)] out DateTime? pausedAt)
Model\ResourceOutgoingPeerResolver.cs (4)
102internal static bool TryResolvePeerNameCore(IDictionary<string, ResourceViewModel> resources, KeyValuePair<string, string>[] attributes, [NotNullWhen(true)] out string? name, [NotNullWhen(true)] out ResourceViewModel? resourceMatch) 131bool TryMatchResourceAddress(string value, [NotNullWhen(true)] out string? name, [NotNullWhen(true)] out ResourceViewModel? resourceMatch)
Model\ResourceViewModel.cs (1)
140public static bool TryGetResourceByName(string resourceName, IDictionary<string, ResourceViewModel> resourceByName, [NotNullWhen(true)] out ResourceViewModel? resource)
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\OtlpHelpers.cs (1)
448public static bool TryGetOrAddScope(Dictionary<string, OtlpScope> scopes, InstrumentationScope? scope, OtlpContext context, TelemetryType telemetryType, [NotNullWhen(true)] out OtlpScope? s)
Otlp\Model\OtlpUnits.cs (1)
35private static bool TryProcessRateUnits(string updatedUnit, [NotNullWhen(true)] out string? updatedPerUnit)
Otlp\Storage\TelemetryRepository.cs (1)
1057static 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)
11public static bool TryGetUriFromDelimitedString([NotNullWhen(true)] string? input, string delimiter, [NotNullWhen(true)] out Uri? uri)
Telemetry\DashboardTelemetrySender.cs (1)
115internal bool TryCreateHttpClient([NotNullWhen(true)] out HttpClient? client)
Utils\GlobalizationHelpers.cs (2)
93public static bool TryGetKnownParentCulture(CultureInfo culture, [NotNullWhen(true)] out CultureInfo? matchedCulture) 98public 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 (27)
ApplicationModel\ResourceExtensions.cs (9)
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) 479public static bool TryGetContainerMounts(this IResource resource, [NotNullWhen(true)] out IEnumerable<ContainerMountAnnotation>? volumeMounts) 490public static bool TryGetEndpoints(this IResource resource, [NotNullWhen(true)] out IEnumerable<EndpointAnnotation>? endpoints) 501public static bool TryGetUrls(this IResource resource, [NotNullWhen(true)] out IEnumerable<ResourceUrlAnnotation>? urls) 539public static bool TryGetContainerImageName(this IResource resource, [NotNullWhen(true)] out string? imageName) 648internal static bool TryGetContainerImagePullPolicy(this IResource resource, [NotNullWhen(true)] out ImagePullPolicy? pullPolicy)
ApplicationModel\ResourceNotificationService.cs (1)
440public bool TryGetCurrentState(string resourceId, [NotNullWhen(true)] out ResourceEvent? resourceEvent)
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)
257public 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)
70public bool TryGetAnnotationAsObjectList<TValue>(string annotationName, [NotNullWhen(true)] out List<TValue>? list) 75internal static bool TryGetAnnotationAsObjectList<TValue>(IDictionary<string, string>? annotations, string annotationName, [NotNullWhen(true)] out List<TValue>? list)
ExternalServiceResource.cs (2)
61internal static bool UrlIsValidForExternalService(string? url, [NotNullWhen(true)] out Uri? uri, [NotNullWhen(false)] out string? message)
Orchestrator\RelationshipEvaluator.cs (1)
26static 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)
115private static bool TrySelectLaunchProfileByOrder(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName) 129private static bool TrySelectLaunchProfileFromDefaultAnnotation(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName) 155private static bool TrySelectLaunchProfileFromAnnotation(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName)
src\Shared\StringUtils.cs (2)
11public static bool TryGetUriFromDelimitedString([NotNullWhen(true)] string? input, string delimiter, [NotNullWhen(true)] out Uri? uri)
VersionChecking\VersionCheckService.cs (1)
165private bool TryGetConfigVersion(string key, [NotNullWhen(true)] out SemVersion? knownLatestVersion)
Aspire.Hosting.Azure.Functions (3)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (3)
115private static bool TrySelectLaunchProfileByOrder(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName) 129private static bool TrySelectLaunchProfileFromDefaultAnnotation(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName) 155private static bool TrySelectLaunchProfileFromAnnotation(ProjectResource projectResource, [NotNullWhen(true)] out string? launchProfileName)
Aspire.Hosting.Azure.Tests (2)
ProvisioningTestHelpers.cs (2)
241protected override bool TryGetHeader(string name, [NotNullWhen(true)] out string? value) 246protected override bool TryGetHeaderValues(string name, [NotNullWhen(true)] out IEnumerable<string>? values)
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)
916internal 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)
GenerateDocumentationAndConfigFiles (451)
CodeFixerExtensions.cs (1)
74private static bool HasImplementation([NotNullWhen(true)] CodeFixProvider? fixer)
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)
14public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] string? value) 18public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue: false)] string? value)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (6)
89internal static bool IsValidClrTypeName([NotNullWhen(returnValue: true)] this string? name) 97internal static bool IsValidClrNamespaceName([NotNullWhen(returnValue: true)] this string? name) 135[NotNullWhen(returnValue: true)] out string? result) 150[NotNullWhen(returnValue: true)] out string? result) 246[NotNullWhen(returnValue: true)] out byte[]? result, 247[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)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (6)
353[NotNullWhen(returnValue: true)] out Version? version, 354[NotNullWhen(returnValue: true)] out ReleaseTrackingLine? releaseTrackingLine) 360[NotNullWhen(returnValue: true)] out Version? version, 361[NotNullWhen(returnValue: true)] out ReleaseTrackingLine? releaseTrackingLine) 367[NotNullWhen(returnValue: true)] out Version? version, 368[NotNullWhen(returnValue: true)] out ReleaseTrackingLine? releaseTrackingLine)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\CompilationExtensions.cs (1)
31internal static bool TryGetOrCreateTypeByMetadataName(this Compilation compilation, string fullTypeName, [NotNullWhen(returnValue: true)] out INamedTypeSymbol? namedTypeSymbol) =>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (15)
89public static bool IsImplementationOfInterfaceMethod(this IMethodSymbol method, ITypeSymbol? typeArgument, [NotNullWhen(returnValue: true)] INamedTypeSymbol? interfaceType, string interfaceMethodName) 119public static bool IsDisposeImplementation([NotNullWhen(returnValue: true)] this IMethodSymbol? method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? iDisposable) 141public static bool IsAsyncDisposeImplementation([NotNullWhen(returnValue: true)] this IMethodSymbol? method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? iAsyncDisposable, [NotNullWhen(returnValue: true)] INamedTypeSymbol? valueTaskType) 231private static bool HasOverriddenDisposeCoreAsyncMethodSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? task) 244private static bool HasVirtualOrOverrideDisposeCoreAsyncMethodSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? valueTask) 321public static bool IsSerializationConstructor([NotNullWhen(returnValue: true)] this IMethodSymbol? method, INamedTypeSymbol? serializationInfoType, INamedTypeSymbol? streamingContextType) 327public static bool IsGetObjectData([NotNullWhen(returnValue: true)] this IMethodSymbol? method, INamedTypeSymbol? serializationInfoType, INamedTypeSymbol? streamingContextType) 395public static bool IsTaskFromResultMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? taskType) 404public static bool IsTaskConfigureAwaitMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? genericTaskType) 416public static bool IsAsyncDisposableConfigureAwaitMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? asyncDisposableType, [NotNullWhen(returnValue: true)] INamedTypeSymbol? taskAsyncEnumerableExtensions) 493public static bool IsLockMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? systemThreadingMonitor)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (5)
277public static bool TryGetEnclosingControlFlowGraph(this IOperation operation, [NotNullWhen(returnValue: true)] out ControlFlowGraph? cfg) 385public static bool IsWithinLambdaOrLocalFunction(this IOperation operation, [NotNullWhen(true)] out IOperation? containingLambdaOrLocalFunctionOperation) 421[NotNullWhen(returnValue: true)] out ITupleOperation? parentTupleOperation, 422[NotNullWhen(returnValue: true)] out IOperation? elementOfParentTupleContainingTuple) 505[NotNullWhen(true)] out IArgumentOperation? result)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (14)
23public static bool IsDefaultConstructor([NotNullWhen(returnValue: true)] this ISymbol? symbol) 38public static bool IsIndexer([NotNullWhen(returnValue: true)] this ISymbol? symbol) 43public static bool IsPropertyWithBackingField([NotNullWhen(returnValue: true)] this ISymbol? symbol, [NotNullWhen(true)] out IFieldSymbol? backingField) 168public static bool IsImplementationOfInterfaceMember(this ISymbol symbol, [NotNullWhen(returnValue: true)] ISymbol? interfaceMember) 177public static bool IsOverrideOrImplementationOfInterfaceMember(this ISymbol symbol, [NotNullWhen(returnValue: true)] ISymbol? interfaceMember) 196public static bool IsImplementationOfAnyExplicitInterfaceMember([NotNullWhen(returnValue: true)] this ISymbol? symbol) 228public static bool IsReadOnlyFieldOrProperty([NotNullWhen(returnValue: true)] this ISymbol? symbol) 240public static AttributeData? GetAttribute(this ISymbol symbol, [NotNullWhen(true)] INamedTypeSymbol? attributeType) 292public static bool HasDerivedTypeAttribute(this ITypeSymbol symbol, [NotNullWhen(returnValue: true)] INamedTypeSymbol? attribute) 331public static bool HasDerivedMethodAttribute(this IMethodSymbol symbol, [NotNullWhen(returnValue: true)] INamedTypeSymbol? attribute) 356public static bool IsLambdaOrLocalFunction([NotNullWhen(returnValue: true)] this ISymbol? symbol) 359public static bool IsConst([NotNullWhen(returnValue: true)] this ISymbol? symbol) 371public static bool IsReadOnly([NotNullWhen(returnValue: true)] this ISymbol? symbol)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (8)
39public static bool Inherits([NotNullWhen(returnValue: true)] this ITypeSymbol? type, [NotNullWhen(returnValue: true)] ITypeSymbol? possibleBase) 64public static bool DerivesFrom([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol, [NotNullWhen(returnValue: true)] ITypeSymbol? candidateBaseType, bool baseTypesOnly = false, bool checkTypeParameterConstraints = true) 253public static bool CanHoldNullValue([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol) 258public static bool IsNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol) 261public static bool IsReferenceTypeOrNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol) 264public static bool IsNullableOfBoolean([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (4)
192private static bool TryGetProperty<T, TProperty>([NotNullWhen(true)] Type? type, string propertyName, [NotNullWhen(true)] out PropertyInfo? propertyInfo) 212private static bool TryGetMethod<T, TReturn>([NotNullWhen(true)] Type? type, string methodName, [NotNullWhen(true)] out MethodInfo? methodInfo)
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
29protected abstract bool TryGetOptionValue(string optionKeyPrefix, string? optionKeySuffix, string optionName, [NotNullWhen(returnValue: true)] out string? valueString);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
31private static bool TryGetSyntaxTreeForOption(ISymbol symbol, [NotNullWhen(returnValue: true)] out SyntaxTree? tree)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
267private bool TryGetFirstWildcardMatch(ISymbol symbol, [NotNullWhen(true)] out string? firstMatchName, [MaybeNullWhen(false)] out TValue firstMatchValue)
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
65protected override bool TryGetOptionValue(string optionKeyPrefix, string? optionKeySuffix, string optionName, [NotNullWhen(returnValue: true)] out string? valueString)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (3)
94[NotNullWhen(returnValue: true)] out INamedTypeSymbol? namedTypeSymbol) 106[NotNullWhen(returnValue: true)] out INamedTypeSymbol? namedTypeSymbol) 203internal bool IsTaskOfType([NotNullWhen(returnValue: true)] ITypeSymbol? typeSymbol, Func<ITypeSymbol, bool> typeArgumentPredicate)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (4)
17public static bool TryParseStringEditorConfigCodeStyleOption(string arg, CodeStyleOption2<string> defaultValue, [NotNullWhen(true)] out CodeStyleOption2<string>? option) 53string arg, [NotNullWhen(true)] out string? value) 64string arg, NotificationOption2 defaultNotification, [NotNullWhen(true)] out string? value, [NotNullWhen(true)] out NotificationOption2 notification)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (5)
23bool TryGetRoot(TIntervalTree tree, [NotNullWhen(true)] out TNode? root); 24bool TryGetLeftNode(TIntervalTree tree, TNode node, [NotNullWhen(true)] out TNode? leftNode); 25bool TryGetRightNode(TIntervalTree tree, TNode node, [NotNullWhen(true)] out TNode? rightNode); 115[NotNullWhen(true)] out TNode? right) where TIntrospector : struct, IIntervalIntrospector<T> 143[NotNullWhen(true)] out TNode? left) where TIntrospector : struct, IIntervalIntrospector<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (3)
158public bool TryGetRoot(MutableIntervalTree<T> tree, [NotNullWhen(true)] out Node? root) 164public bool TryGetLeftNode(MutableIntervalTree<T> tree, Node node, [NotNullWhen(true)] out Node? leftNode) 170public 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\ListExtensions.cs (1)
87public 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)
259public static bool IsInLeftOfDeconstructionAssignment(this IOperation operation, [NotNullWhen(true)] out IDeconstructionAssignmentOperation? deconstructionAssignment) 357public static bool HasAnyOperationDescendant(this IOperation operationBlock, Func<IOperation, bool> predicate, [NotNullWhen(true)] out IOperation? foundOperation) 399public 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)
138protected 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)
21[NotNullWhen(true)] out NamingRule? namingRule, 48[NotNullWhen(true)] out NamingStyleOption? rule,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
22[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)
19public abstract bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 20public abstract bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration); 21public abstract bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter); 22public abstract bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method); 23public abstract bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction); 24public abstract bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration); 25public abstract bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement); 26public abstract bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement); 27public 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\RefactoringHelpers\AbstractRefactoringHelpers.cs (10)
25public abstract bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 586public bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration) 589public bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration) 592public bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter) 595public bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method) 598public bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction) 601public bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration) 604public bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement) 607public bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement) 610public bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\RefactoringHelpers\IRefactoringHelpers.cs (1)
23bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (10)
51bool IsWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 58bool IsOnlyWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 59bool IsInOutContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 60bool IsInRefContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 61bool IsInInContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 63bool CanReplaceWithRValue(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? expression, CancellationToken cancellationToken); 72bool TryGetSpeculativeSemanticModel(SemanticModel oldSemanticModel, SyntaxNode oldNode, SyntaxNode newNode, [NotNullWhen(true)] out SemanticModel? speculativeModel); 100bool IsInsideNameOfExpression(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 107bool IsInExpressionTree(SemanticModel semanticModel, SyntaxNode node, [NotNullWhen(true)] INamedTypeSymbol? expressionType, CancellationToken cancellationToken); 122bool TryGetPrimaryConstructor(INamedTypeSymbol typeSymbol, [NotNullWhen(true)] out IMethodSymbol? primaryConstructor);
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 (75)
121bool IsPredefinedType([NotNullWhen(true)] SyntaxNode? node); 122bool IsPredefinedType([NotNullWhen(true)] SyntaxNode? node, PredefinedType type); 172bool IsUsingOrExternOrImport([NotNullWhen(true)] SyntaxNode? node); 173bool IsGlobalAssemblyAttribute([NotNullWhen(true)] SyntaxNode? node); 174bool IsGlobalModuleAttribute([NotNullWhen(true)] SyntaxNode? node); 175bool IsDeclaration([NotNullWhen(true)] SyntaxNode? node); 178bool IsUsingAliasDirective([NotNullWhen(true)] SyntaxNode? node); 192bool IsEntirelyWithinStringOrCharOrNumericLiteral([NotNullWhen(true)] SyntaxTree? syntaxTree, int position, CancellationToken cancellationToken); 196bool TryGetExternalSourceInfo([NotNullWhen(true)] SyntaxNode? directive, out ExternalSourceInfo info); 198bool IsDeclarationExpression([NotNullWhen(true)] SyntaxNode? node); 200bool IsConversionExpression([NotNullWhen(true)] SyntaxNode? node); 201bool IsCastExpression([NotNullWhen(true)] SyntaxNode? node); 203bool IsExpressionOfForeach([NotNullWhen(true)] SyntaxNode? node); 209bool IsVerbatimInterpolatedStringExpression([NotNullWhen(true)] SyntaxNode? node); 212bool IsLeftSideOfAssignment([NotNullWhen(true)] SyntaxNode? node); 214bool IsAnyAssignmentStatement([NotNullWhen(true)] SyntaxNode? statement); 215bool IsSimpleAssignmentStatement([NotNullWhen(true)] SyntaxNode? statement); 220bool IsLeftSideOfAnyAssignment([NotNullWhen(true)] SyntaxNode? node); 222bool IsLeftSideOfCompoundAssignment([NotNullWhen(true)] SyntaxNode? node); 225bool IsInferredAnonymousObjectMemberDeclarator([NotNullWhen(true)] SyntaxNode? node); 226bool IsOperandOfIncrementExpression([NotNullWhen(true)] SyntaxNode? node); 227bool IsOperandOfIncrementOrDecrementExpression([NotNullWhen(true)] SyntaxNode? node); 229bool IsLeftSideOfDot([NotNullWhen(true)] SyntaxNode? node); 246bool IsLeftSideOfExplicitInterfaceSpecifier([NotNullWhen(true)] SyntaxNode? node); 248bool IsNameOfSimpleMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 249bool IsNameOfAnyMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 250bool IsNameOfMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node); 283bool IsPointerMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 285bool IsNamedArgument([NotNullWhen(true)] SyntaxNode? node); 286bool IsNameOfNamedArgument([NotNullWhen(true)] SyntaxNode? node); 288bool IsParameterList([NotNullWhen(true)] SyntaxNode? node); 298bool IsElementBindingExpression([NotNullWhen(true)] SyntaxNode? node); 299bool IsMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node); 300bool IsPostfixUnaryExpression([NotNullWhen(true)] SyntaxNode? node); 311bool IsSimpleArgument([NotNullWhen(true)] SyntaxNode? node); 312bool IsArgument([NotNullWhen(true)] SyntaxNode? node); 313bool IsAttributeArgument([NotNullWhen(true)] SyntaxNode? node); 327bool IsUsingDirectiveName([NotNullWhen(true)] SyntaxNode? node); 333bool IsAttributeNamedArgumentIdentifier([NotNullWhen(true)] SyntaxNode? node); 334bool IsMemberInitializerNamedAssignmentIdentifier([NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? initializedInstance); 335bool IsAnyInitializerExpression([NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? creationExpression); 337bool IsDirective([NotNullWhen(true)] SyntaxNode? node); 338bool IsStatement([NotNullWhen(true)] SyntaxNode? node); 339bool IsExecutableStatement([NotNullWhen(true)] SyntaxNode? node); 340bool IsGlobalStatement([NotNullWhen(true)] SyntaxNode? node); 343bool IsDeconstructionAssignment([NotNullWhen(true)] SyntaxNode? node); 344bool IsDeconstructionForEachStatement([NotNullWhen(true)] SyntaxNode? node); 359bool IsMethodBody([NotNullWhen(true)] SyntaxNode? node); 369bool IsElementAccessExpression([NotNullWhen(true)] SyntaxNode? node); 390bool IsInNamespaceOrTypeContext([NotNullWhen(true)] SyntaxNode? node); 392bool IsBaseTypeList([NotNullWhen(true)] SyntaxNode? node); 394bool IsInConstantContext([NotNullWhen(true)] SyntaxNode? node); 396bool IsMethodLevelMember([NotNullWhen(true)] SyntaxNode? node); 397bool IsTopLevelNodeWithMembers([NotNullWhen(true)] SyntaxNode? node); 460bool IsNameOfSubpattern([NotNullWhen(true)] SyntaxNode? node); 463bool IsAnyPattern([NotNullWhen(true)] SyntaxNode? node); 464bool IsBinaryPattern([NotNullWhen(true)] SyntaxNode? node); 465bool IsUnaryPattern([NotNullWhen(true)] SyntaxNode? node); 491bool IsParameterNameXmlElementSyntax([NotNullWhen(true)] SyntaxNode? node); 499bool IsAnonymousFunctionExpression([NotNullWhen(true)] SyntaxNode? node); 500bool IsBaseNamespaceDeclaration([NotNullWhen(true)] SyntaxNode? node); 501bool IsBinaryExpression([NotNullWhen(true)] SyntaxNode? node); 502bool IsLiteralExpression([NotNullWhen(true)] SyntaxNode? node); 503bool IsMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 504bool IsMethodDeclaration([NotNullWhen(true)] SyntaxNode? node); 505bool IsSimpleName([NotNullWhen(true)] SyntaxNode? node); 506bool IsAnyName([NotNullWhen(true)] SyntaxNode? node); 507bool IsAnyType([NotNullWhen(true)] SyntaxNode? node); 509bool IsNamedMemberInitializer([NotNullWhen(true)] SyntaxNode? node); 510bool IsElementAccessInitializer([NotNullWhen(true)] SyntaxNode? node); 512bool IsObjectMemberInitializer([NotNullWhen(true)] SyntaxNode? node); 513bool IsObjectCollectionInitializer([NotNullWhen(true)] SyntaxNode? node); 561bool 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)
116[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)
26public 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\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
44public static bool HasEventHandlerSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? eventArgsType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
56public static bool IsContainedWithin([NotNullWhen(returnValue: true)] this INamedTypeSymbol? symbol, INamedTypeSymbol outer) 672public static bool IsCollectionBuilderAttribute([NotNullWhen(true)] this INamedTypeSymbol? type)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (49)
107bool TryFindLooseMatch(ISymbol symbol, INamedTypeSymbol baseType, [NotNullWhen(true)] out ISymbol? looseMatch) 177public static bool IsOverridable([NotNullWhen(true)] this ISymbol? symbol) 184public static bool IsImplementableMember([NotNullWhen(true)] this ISymbol? symbol) 224public static bool IsErrorType([NotNullWhen(true)] this ISymbol? symbol) 227public static bool IsModuleType([NotNullWhen(true)] this ISymbol? symbol) 230public static bool IsInterfaceType([NotNullWhen(true)] this ISymbol? symbol) 233public static bool IsArrayType([NotNullWhen(true)] this ISymbol? symbol) 236public static bool IsTupleType([NotNullWhen(true)] this ISymbol? symbol) 239public static bool IsAnonymousFunction([NotNullWhen(true)] this ISymbol? symbol) 242public static bool IsKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind) 245public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind) 248public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2) 254public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2, SymbolKind kind3) 260public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, params SymbolKind[] kinds) 266public static bool IsReducedExtension([NotNullWhen(true)] this ISymbol? symbol) 269public static bool IsEnumMember([NotNullWhen(true)] this ISymbol? symbol) 275public static bool IsLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 278public static bool IsAnonymousOrLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 281public static bool IsModuleMember([NotNullWhen(true)] this ISymbol? symbol) 284public static bool IsConstructor([NotNullWhen(true)] this ISymbol? symbol) 287public static bool IsStaticConstructor([NotNullWhen(true)] this ISymbol? symbol) 290public static bool IsDestructor([NotNullWhen(true)] this ISymbol? symbol) 293public static bool IsUserDefinedOperator([NotNullWhen(true)] this ISymbol? symbol) 296public static bool IsConversion([NotNullWhen(true)] this ISymbol? symbol) 299public static bool IsOrdinaryMethod([NotNullWhen(true)] this ISymbol? symbol) 302public static bool IsOrdinaryMethodOrLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 305public static bool IsDelegateType([NotNullWhen(true)] this ISymbol? symbol) 308public static bool IsAnonymousType([NotNullWhen(true)] this ISymbol? symbol) 311public static bool IsNormalAnonymousType([NotNullWhen(true)] this ISymbol? symbol) 314public static bool IsAnonymousDelegateType([NotNullWhen(true)] this ISymbol? symbol) 317public static bool IsAnonymousTypeProperty([NotNullWhen(true)] this ISymbol? symbol) 320public static bool IsTupleField([NotNullWhen(true)] this ISymbol? symbol) 323public static bool IsIndexer([NotNullWhen(true)] this ISymbol? symbol) 326public static bool IsWriteableFieldOrProperty([NotNullWhen(true)] this ISymbol? symbol) 334public static bool IsRequired([NotNullWhen(true)] this ISymbol? symbol) 401public static bool IsFunctionValue([NotNullWhen(true)] this ISymbol? symbol) 404public static bool IsThisParameter([NotNullWhen(true)] this ISymbol? symbol) 418public static bool IsParams([NotNullWhen(true)] this ISymbol? symbol) 473public static bool IsAttribute([NotNullWhen(true)] this ISymbol? symbol) 482public static bool RequiresUnsafeModifier([NotNullWhen(true)] this ISymbol? member) 532public static bool IsStaticType([NotNullWhen(true)] this ISymbol? symbol) 536[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 606public static bool IsAccessor([NotNullWhen(true)] this ISymbol? symbol) 609public static bool IsPropertyAccessor([NotNullWhen(true)] this ISymbol? symbol) 612public static bool IsEventAccessor([NotNullWhen(true)] this ISymbol? symbol) 637public static bool IsAwaitableNonDynamic([NotNullWhen(true)] this ISymbol? symbol, SemanticModel semanticModel, int position) 776public static bool IsKind<TSymbol>(this ISymbol symbol, SymbolKind kind, [NotNullWhen(true)] out TSymbol? result) where TSymbol : class, ISymbol 809public static bool HasAttribute([NotNullWhen(true)] this ISymbol? symbol, [NotNullWhen(true)] INamedTypeSymbol? attributeClass)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (29)
26public static bool IsIntegralType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 29public static bool IsSignedIntegralType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 32public static bool CanAddNullCheck([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 51public static bool IsAbstractClass([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 54public static bool IsSystemVoid([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 57public static bool IsNullable([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 60public static bool IsNonNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 64[NotNullWhen(true)] this ITypeSymbol? symbol, 65[NotNullWhen(true)] out ITypeSymbol? underlyingType) 77public static bool IsModuleType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 80public static bool IsInterfaceType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 83public static bool IsDelegateType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 86public static bool IsFunctionPointerType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 89public static bool IsStructType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 92public static bool IsAnonymousType([NotNullWhen(returnValue: true)] this INamedTypeSymbol? symbol) 243public static bool IsFormattableStringOrIFormattable([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 280public static bool IsNumericType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 309public static bool ContainsAnonymousType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 368public static bool IsSpecialType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 592public static bool IsOrDerivesFromExceptionType([NotNullWhen(returnValue: true)] this ITypeSymbol? type, Compilation compilation) 625public static bool IsEnumType([NotNullWhen(true)] this ITypeSymbol? type) 628public static bool IsEnumType([NotNullWhen(true)] this ITypeSymbol? type, [NotNullWhen(true)] out INamedTypeSymbol? enumType) 719public static bool IsDisposable([NotNullWhen(returnValue: true)] this ITypeSymbol? type, [NotNullWhen(returnValue: true)] ITypeSymbol? iDisposableType) 738public static bool IsSpanOrReadOnlySpan([NotNullWhen(true)] this ITypeSymbol? type) 741public static bool IsSpan([NotNullWhen(true)] this ITypeSymbol? type) 749public static bool IsReadOnlySpan([NotNullWhen(true)] this ISymbol? symbol) 757public static bool IsInlineArray([NotNullWhen(true)] this ITypeSymbol? type)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (2)
179[NotNullWhen(true)] out SyntaxNode? declaration, 219[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)
21public bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration) 27public bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration) 30public bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration) 33public bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter) 36public bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method) 39public bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction) 42public bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration) 45public bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement) 48public bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement) 51public bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement)
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)
263private static bool TryGetValue(IDictionary<string, string>? dictionary, string key, [NotNullWhen(true)] out string? value) 271private 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\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
261public bool TryGetPrimaryConstructor(INamedTypeSymbol typeSymbol, [NotNullWhen(true)] out IMethodSymbol primaryConstructor)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
93public 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)
90static bool InSource([NotNullWhen(true)] ISymbol? symbol)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
128private bool TryGetService(Type serviceType, [NotNullWhen(true)] out Lazy<ILanguageService, LanguageServiceMetadata>? lazyService, out bool usesFactory)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (2)
137private bool TryGetService(Type serviceType, [NotNullWhen(true)] out Lazy<IWorkspaceService, WorkspaceServiceMetadata>? lazyService, out bool usesFactory) 210internal bool TryGetLanguageServices(string languageName, [NotNullWhen(true)] out MefLanguageServices? languageServices)
illink (38)
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 (5)
DependencyInjection\WebAssemblySettingsEmitter.cs (1)
24public bool TryGetSettingsOnce([NotNullWhen(true)] out WebAssemblySettings? settings)
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 (3)
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)
FormMapping\Converters\NullableConverterTests.cs (1)
221public static bool TryParse([NotNullWhen(true)] string s, IFormatProvider provider, [MaybeNullWhen(false)] out ParsableTestStruct result)
Microsoft.AspNetCore.Components.Forms (2)
EditContextDataAnnotationsExtensions.cs (1)
237private 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 (6)
Circuits\IServerComponentDeserializer.cs (2)
13bool TryDeserializeRootComponentOperations(string serializedComponentOperations, [NotNullWhen(true)] out RootComponentOperationBatch? operationBatch, bool deserializeDescriptors = true); 15bool TryDeserializeWebRootComponentDescriptor(ComponentMarker record, [NotNullWhen(true)] out WebRootComponentDescriptor? result);
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) 296[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.Server.Tests (3)
Circuits\CircuitHostTest.cs (1)
969public bool TryDeserializeWebRootComponentDescriptor(ComponentMarker record, [NotNullWhen(true)] out WebRootComponentDescriptor result)
Circuits\ComponentHubTest.cs (2)
366public delegate bool TestTryDeserializeWebRootComponentDescriptor(ComponentMarker record, [NotNullWhen(true)] out WebRootComponentDescriptor result); 389public bool TryDeserializeWebRootComponentDescriptor(ComponentMarker record, [NotNullWhen(true)] out WebRootComponentDescriptor result)
Microsoft.AspNetCore.Components.Web (12)
Forms\InputBase.cs (1)
180protected abstract bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage);
Forms\InputCheckbox.cs (1)
52protected override bool TryParseValueFromString(string? value, out bool result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputDate.cs (1)
110protected override bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputExtensions.cs (1)
14[NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputNumber.cs (1)
68protected override bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputRadioGroup.cs (1)
82protected override bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputSelect.cs (1)
66protected override bool TryParseValueFromString(string? value, [MaybeNullWhen(false)] out TValue result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputText.cs (1)
46protected override bool TryParseValueFromString(string? value, out string? result, [NotNullWhen(false)] out string? validationErrorMessage)
Forms\InputTextArea.cs (1)
46protected override bool TryParseValueFromString(string? value, out string? result, [NotNullWhen(false)] out string? validationErrorMessage)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (1)
230protected bool TryCreateScopeQualifiedEventName(int componentId, string assignedEventName, [NotNullWhen(true)] out string? scopeQualifiedEventName)
JSComponents\JSComponentConfigurationStore.cs (1)
46[NotNullWhen(true)][DynamicallyAccessedMembers(LinkerFlags.Component)] out Type? componentType)
WebEventData\WebEventData.cs (1)
90[NotNullWhen(true)] out EventArgs? eventArgs)
Microsoft.AspNetCore.Connections.Abstractions (1)
NamedPipeEndPoint.cs (1)
55public override bool Equals([NotNullWhen(true)] object? obj)
Microsoft.AspNetCore.DataProtection (7)
Internal\DefaultTypeNameResolver.cs (1)
18public bool TryResolveType(string typeName, [NotNullWhen(true)] out Type? type)
Internal\ITypeNameResolver.cs (1)
11bool TryResolveType(string typeName, [NotNullWhen(true)] out Type? type);
KeyManagement\Internal\CacheableKeyRing.cs (1)
34internal static bool IsValid([NotNullWhen(true)] CacheableKeyRing? keyRing, DateTime utcNow)
LoggingExtensions.cs (3)
22public static bool IsDebugLevelEnabled([NotNullWhen(true)] this ILogger? logger) 32public static bool IsTraceLevelEnabled([NotNullWhen(true)] this ILogger? logger) 38private static bool IsLogLevelEnabledCore([NotNullWhen(true)] ILogger? logger, LogLevel level)
XmlEncryption\XmlKeyDecryptionOptions.cs (1)
20public bool TryGetKeyDecryptionCertificates(X509Certificate2 certInfo, [NotNullWhen(true)] out IReadOnlyList<X509Certificate2>? keyDecryptionCerts)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
916internal 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)
257private 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.Identity (1)
Passkeys\BufferSourceJsonConverter.cs (1)
43private static bool TryDecodeBase64Url(ReadOnlySpan<byte> utf8Unescaped, [NotNullWhen(true)] out byte[]? bytes)
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)
2701public 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)
915protected 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)
916internal 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)
187private 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)
2198public bool TryGetInvocation(string invocationId, [NotNullWhen(true)] out InvocationRequest? irq) 2206public bool TryRemoveInvocation(string invocationId, [NotNullWhen(true)] out InvocationRequest? irq)
src\SignalR\common\Shared\ReflectionHelper.cs (1)
28public static bool TryGetStreamType(Type streamType, [NotNullWhen(true)] out Type? streamGenericType, bool mustBeDirectType = false)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubProtocolVersionTests.cs (1)
221public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage message)
Microsoft.AspNetCore.SignalR.Common (3)
Protocol\HandshakeProtocol.cs (2)
116public static bool TryParseResponseMessage(ref ReadOnlySequence<byte> buffer, [NotNullWhen(true)] out HandshakeResponseMessage? responseMessage) 170public static bool TryParseRequestMessage(ref ReadOnlySequence<byte> buffer, [NotNullWhen(true)] out HandshakeRequestMessage? requestMessage)
Protocol\IHubProtocol.cs (1)
38bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message);
Microsoft.AspNetCore.SignalR.Core (7)
DefaultHubLifetimeManager.cs (1)
391public override bool TryGetReturnType(string invocationId, [NotNullWhen(true)] out Type? type)
HubLifetimeManager.cs (1)
169public virtual bool TryGetReturnType(string invocationId, [NotNullWhen(true)] out Type? type)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
398private static bool IsTaskType(Type methodReturnType, [NotNullWhen(true)] out Type? resultType)
src\SignalR\common\Shared\ClientResultsManager.cs (1)
81public bool TryGetType(string invocationId, [NotNullWhen(true)] out Type? type)
src\SignalR\common\Shared\ReflectionHelper.cs (1)
28public static bool TryGetStreamType(Type streamType, [NotNullWhen(true)] out Type? streamGenericType, bool mustBeDirectType = false)
StreamTracker.cs (2)
42private bool TryGetConverter(string streamId, [NotNullWhen(true)] out IStreamConverter? converter) 52public bool TryProcessItem(StreamItemMessage message, [NotNullWhen(true)] out Task? task)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
89public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message)
Microsoft.AspNetCore.SignalR.Protocols.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.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
79public bool TryParseMessage(ref ReadOnlySequence<byte> input, IInvocationBinder binder, [NotNullWhen(true)] out HubMessage? message)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisHubLifetimeManager.cs (1)
444public override bool TryGetReturnType(string invocationId, [NotNullWhen(true)] out Type? type)
src\SignalR\common\Shared\ClientResultsManager.cs (1)
81public bool TryGetType(string invocationId, [NotNullWhen(true)] out Type? type)
Microsoft.AspNetCore.WebSockets (1)
HandshakeHelpers.cs (1)
76int serverMaxWindowBits, out WebSocketDeflateOptions parsedOptions, [NotNullWhen(true)] out string? response)
Microsoft.AspNetCore.WebUtilities (2)
FormReader.cs (2)
216private bool TryReadWord(char separator, int limit, [NotNullWhen(true)] out string? value) 228private bool ReadChar(char separator, int limit, [NotNullWhen(true)] out string? word)
Microsoft.Build.Tasks.CodeAnalysis (4)
src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (1)
208internal static bool IsParameterEmpty([NotNullWhen(false)] string? parameter, params char[] splitOn)
src\Compilers\Core\Portable\InternalUtilities\RoslynString.cs (2)
14public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] string? value) 18public 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 (92)
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 (8)
147internal static bool TryParseOption(string arg, [NotNullWhen(true)] out string? name, out string? value) 710[NotNullWhen(true)] out List<string>? parsedArgs, 714[NotNullWhen(false)] out string? errorMessage) 820[NotNullWhen(true)] out string? filePath, 821[NotNullWhen(true)] out string? fullPath, 822[NotNullWhen(true)] out string? fileName, 823[NotNullWhen(true)] out string? resourceName, 824[NotNullWhen(true)] out bool? isPublic,
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)
14public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] string? value) 18public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue: false)] string? value)
InternalUtilities\StringExtensions.cs (6)
89internal static bool IsValidClrTypeName([NotNullWhen(returnValue: true)] this string? name) 97internal static bool IsValidClrNamespaceName([NotNullWhen(returnValue: true)] this string? name) 135[NotNullWhen(returnValue: true)] out string? result) 150[NotNullWhen(returnValue: true)] out string? result) 246[NotNullWhen(returnValue: true)] out byte[]? result, 247[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)
2196private 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)
156public static bool TryParseDisplayName(string displayName, [NotNullWhen(true)] out AssemblyIdentity? identity) 195public static bool TryParseDisplayName(string displayName, [NotNullWhen(true)] out AssemblyIdentity? identity, out AssemblyIdentityParts parts) 210static bool tryParseDisplayName(string displayName, [NotNullWhen(true)] out AssemblyIdentity? identity, out AssemblyIdentityParts parts) 448private static bool TryParseNameToken(string displayName, ref int position, [NotNullWhen(true)] out string? value) 806private 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\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (2)
824private static bool TrySplit(string input, int offset, char separator, [NotNullWhen(true)] out string? before, [NotNullWhen(true)] out string? after)
src\Dependencies\Collections\Internal\SegmentedHashSetEqualityComparer`1.cs (1)
86public 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)
214internal static bool IsNullableType([NotNullWhen(returnValue: true)] ITypeSymbol? typeOpt) 219internal static bool IsNullableOfBoolean([NotNullWhen(returnValue: true)] ITypeSymbol? type) 230internal static bool IsBooleanType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 235internal static bool IsObjectType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 240internal static bool IsSignedIntegralType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 245internal static bool IsUnsignedIntegralType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 250internal static bool IsNumericType([NotNullWhen(returnValue: true)] ITypeSymbol? type) 266internal static bool IsDynamicType([NotNullWhen(returnValue: true)] ITypeSymbol? type)
Syntax\GreenNode.cs (2)
499public bool HasAnnotation([NotNullWhen(true)] SyntaxAnnotation? annotation) 826public virtual bool IsEquivalentTo([NotNullWhen(true)] GreenNode? other)
Syntax\SyntaxNode.cs (3)
337public bool IsEquivalentTo([NotNullWhen(true)] SyntaxNode? other) 366public bool IsIncrementallyIdenticalTo([NotNullWhen(true)] SyntaxNode? other) 1226public bool HasAnnotation([NotNullWhen(true)] SyntaxAnnotation? annotation)
Syntax\SyntaxNodeOrToken.cs (2)
198internal bool AsNode([NotNullWhen(true)] out SyntaxNode? node) 563public bool HasAnnotation([NotNullWhen(true)] SyntaxAnnotation? annotation)
Syntax\SyntaxToken.cs (1)
261public 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)
170public bool HasAnnotation([NotNullWhen(true)] SyntaxAnnotation? annotation) 213internal 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 (146)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
211[NotNullWhen(true)] out SyntaxNode? memberAccessNode, 212[NotNullWhen(true)] out string? memberName,
Binder\Binder.ValueChecks.cs (2)
2455static bool isMixableParameter([NotNullWhen(true)] ParameterSymbol? parameter) => 2835private bool ShouldInferDeclarationExpressionValEscape(BoundExpression argument, [NotNullWhen(true)] out SourceLocalSymbol? localSymbol)
Binder\Binder_Await.cs (3)
323private bool GetGetAwaiterMethod(BoundExpression expression, SyntaxNode node, BindingDiagnosticBag diagnostics, [NotNullWhen(true)] out BoundExpression? getAwaiterCall) 368private bool GetIsCompletedProperty(TypeSymbol awaiterType, SyntaxNode node, TypeSymbol awaitedExpressionType, BindingDiagnosticBag diagnostics, [NotNullWhen(true)] out PropertySymbol? isCompletedProperty) 435private bool GetGetResultMethod(BoundExpression awaiterExpression, SyntaxNode node, TypeSymbol awaitedExpressionType, BindingDiagnosticBag diagnostics, out MethodSymbol? getResultMethod, [NotNullWhen(true)] out BoundExpression? getAwaiterGetResultCall)
Binder\Binder_Conversions.cs (3)
1217[NotNullWhen(returnValue: true)] out NamedTypeSymbol? inProgress, 2790internal static bool IsMemberAccessedThroughType([NotNullWhen(true)] BoundExpression? receiverOpt) 2808internal static bool WasImplicitReceiver([NotNullWhen(false)] BoundExpression? receiverOpt)
Binder\Binder_Expressions.cs (6)
10276[NotNullWhen(true)] out BoundImplicitIndexerAccess? implicitIndexerAccess) 10360[NotNullWhen(true)] out BoundExpression? lengthOrCountAccess, 10361[NotNullWhen(true)] out BoundExpression? indexerOrSliceAccess, 10393[NotNullWhen(true)] out BoundExpression? indexerOrSliceAccess, 10558[NotNullWhen(true)] out PropertySymbol? lengthOrCountProperty, 10570bool tryLookupLengthOrCount(SyntaxNode syntax, string propertyName, [NotNullWhen(true)] out PropertySymbol? valid, BindingDiagnosticBag diagnostics)
Binder\Binder_InterpolatedString.cs (2)
275bool tryBindAsHandlerType([NotNullWhen(true)] out BoundInterpolatedString? result) 438private bool TryBindUnconvertedBinaryOperatorToDefaultInterpolatedStringHandler(BoundBinaryOperator binaryOperator, BindingDiagnosticBag diagnostics, [NotNullWhen(true)] out BoundBinaryOperator? convertedBinaryOperator)
Binder\Binder_Patterns.cs (6)
1200[NotNullWhen(true)] out NamedTypeSymbol? iTupleType, 1201[NotNullWhen(true)] out MethodSymbol? iTupleGetLength, 1202[NotNullWhen(true)] out MethodSymbol? iTupleGetItem) 1238[NotNullWhen(true)] out NamedTypeSymbol? iTupleType, 1239[NotNullWhen(true)] out MethodSymbol? iTupleGetLength, 1240[NotNullWhen(true)] out MethodSymbol? iTupleGetItem)
Binder\Binder_Statements.cs (1)
1790private static bool HasSynthesizedBackingField(PropertySymbol propertySymbol, [NotNullWhen(true)] out SourcePropertySymbolBase? sourcePropertyDefinition)
Binder\DecisionDagBuilder.cs (1)
605bool tryMakeTestsForSubpatternMember([NotNullWhen(true)] BoundPropertySubpatternMember? member, ref BoundDagTemp input, bool isLengthOrCount)
Binder\LocalBinderFactory.cs (1)
274static bool receiverIsInvocation(InvocationExpressionSyntax node, [NotNullWhen(true)] out InvocationExpressionSyntax? nested)
Binder\MethodGroupResolution.cs (1)
92public bool IsNonMethodExtensionMember([NotNullWhen(true)] out Symbol? extensionMember)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1706internal static bool IsSpanOrListType(CSharpCompilation compilation, TypeSymbol targetType, WellKnownType spanType, [NotNullWhen(true)] out TypeWithAnnotations elementType)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
3001static bool containsFunctionTypes([NotNullWhen(true)] HashSet<TypeWithAnnotations>? types) 3006static bool containsNonFunctionTypes([NotNullWhen(true)] HashSet<TypeWithAnnotations>? types) 3011static bool isFunctionType(TypeWithAnnotations type, [NotNullWhen(true)] out FunctionTypeSymbol? functionType)
Binder\SwitchExpressionBinder.cs (1)
59[NotNullWhen(true)] out LabelSymbol? defaultLabel,
BoundTree\BoundDagEvaluation.cs (1)
13public sealed override bool Equals([NotNullWhen(true)] object? obj) => obj is BoundDagEvaluation other && this.Equals(other);
BoundTree\BoundDagTest.cs (1)
16public override bool Equals([NotNullWhen(true)] object? obj) => this.Equals(obj as BoundDagTest);
BoundTree\BoundExpressionExtensions.cs (1)
253internal static bool IsExpressionOfComImportType([NotNullWhen(true)] this BoundExpression? expressionOpt)
BoundTree\BoundNodeExtensions.cs (1)
34public static bool HasErrors([NotNullWhen(true)] this BoundNode? node)
CodeGen\EmitArrayInitializer.cs (1)
775bool tryGetReadOnlySpanArrayCtor(SyntaxNode syntax, [NotNullWhen(true)] out MethodSymbol? rosArrayCtor)
Compiler\DocumentationCommentCompiler.cs (1)
455[NotNullWhen(true)] out string? withUnprocessedIncludes,
CSharpExtensions.cs (25)
47public static bool IsKind([NotNullWhen(true)] this SyntaxNode? node, SyntaxKind kind) 400internal static bool HasReferenceDirectives([NotNullWhen(true)] this SyntaxTree? tree) 406internal static bool HasReferenceOrLoadDirectives([NotNullWhen(true)] this SyntaxTree? tree) 412internal static bool IsAnyPreprocessorSymbolDefined([NotNullWhen(true)] this SyntaxTree? tree, ImmutableArray<string> conditionalSymbols) 418internal static bool IsPreprocessorSymbolDefined([NotNullWhen(true)] this SyntaxTree? tree, string symbolName, int position) 1112public static bool TryGetSpeculativeSemanticModelForMethodBody([NotNullWhen(true)] this SemanticModel? semanticModel, int position, BaseMethodDeclarationSyntax method, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1131public static bool TryGetSpeculativeSemanticModelForMethodBody([NotNullWhen(true)] this SemanticModel? semanticModel, int position, AccessorDeclarationSyntax accessor, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1150public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, TypeSyntax type, [NotNullWhen(true)] out SemanticModel? speculativeModel, SpeculativeBindingOption bindingOption = SpeculativeBindingOption.BindAsExpression) 1169public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, CrefSyntax crefSyntax, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1188public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, StatementSyntax statement, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1207public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, EqualsValueClauseSyntax initializer, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1226public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, ArrowExpressionClauseSyntax expressionBody, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1247public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, ConstructorInitializerSyntax constructorInitializer, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1268public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, PrimaryConstructorBaseTypeSyntax constructorInitializer, [NotNullWhen(true)] out SemanticModel? speculativeModel) 1287public static bool TryGetSpeculativeSemanticModel([NotNullWhen(true)] this SemanticModel? semanticModel, int position, AttributeSyntax attribute, [NotNullWhen(true)] out SemanticModel? speculativeModel)
FlowAnalysis\AbstractFlowPass.cs (2)
3003private bool TryVisitConditionalAccess(BoundExpression node, [NotNullWhen(true)] out TLocalState? stateWhenNotNull) 3054private bool VisitPossibleConditionalAccess(BoundExpression node, [NotNullWhen(true)] out TLocalState? stateWhenNotNull)
FlowAnalysis\LocalDataFlowPass.cs (1)
204protected abstract bool TryGetReceiverAndMember(BoundExpression expr, out BoundExpression? receiver, [NotNullWhen(true)] out Symbol? member);
FlowAnalysis\NullableWalker.cs (7)
2037protected override bool TryGetReceiverAndMember(BoundExpression expr, out BoundExpression? receiver, [NotNullWhen(true)] out Symbol? member) 5668private static bool PossiblyNullableType([NotNullWhen(true)] TypeSymbol? operandType) => operandType?.CanContainNull() == true; 8613private bool UseExpressionForConversion([NotNullWhen(true)] BoundExpression? value) 8738bool tryAsMemberOfSingleType(NamedTypeSymbol singleType, [NotNullWhen(true)] out Symbol? result) 8876private static bool AreNullableAndUnderlyingTypes([NotNullWhen(true)] TypeSymbol? nullableTypeOpt, [NotNullWhen(true)] TypeSymbol? underlyingTypeOpt, out TypeWithAnnotations underlyingTypeWithAnnotations) 10279private bool TryGetMethodGroupReceiverNullability([NotNullWhen(true)] BoundExpression? receiverOpt, out TypeWithState type)
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
82internal bool TryGetUpdatedSymbol(BoundNode node, Symbol symbol, [NotNullWhen(true)] out Symbol? updatedSymbol)
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (2)
55protected virtual bool TryRewriteLocal(LocalSymbol local, [NotNullWhen(true)] out LocalSymbol? newLocal) 95protected bool TryGetRewrittenLocal(LocalSymbol local, [NotNullWhen(true)] out LocalSymbol? localToUse)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
46[NotNullWhen(true)] out CodeCoverageInstrumenter? instrumenter)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (4)
158[NotNullWhen(true)] out LocalStateTracingInstrumenter? instrumenter) 409private bool TryGetLocalOrParameterInfo(BoundNode node, [NotNullWhen(true)] out Symbol? symbol, [NotNullWhen(true)] out TypeSymbol? type, [NotNullWhen(true)] out BoundExpression? indexExpression)
Lowering\Instrumentation\ModuleCancellationInstrumenter.cs (1)
44[NotNullWhen(true)] out ModuleCancellationInstrumenter? instrumenter)
Lowering\Instrumentation\StackOverflowProbingInstrumenter.cs (1)
34[NotNullWhen(true)] out StackOverflowProbingInstrumenter? instrumenter)
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
123private static bool TryGetOwnerFunctionOrExtensionType(MethodSymbol currentFunction, BoundDelegateCreationExpression boundDelegateCreation, [NotNullWhen(true)] out Symbol? owner)
Lowering\LocalRewriter\LocalRewriter.cs (1)
596private bool TryGetWellKnownTypeMember<TSymbol>(SyntaxNode? syntax, WellKnownMember member, [NotNullWhen(true)] out TSymbol? symbol, bool isOptional = false, Location? location = null) where TSymbol : Symbol
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
465[NotNullWhen(true)] out BoundExpression sideEffect, 466[NotNullWhen(true)] out BoundExpression testExpression)
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
1122[NotNullWhen(returnValue: true)] ConstantValue? constantValue)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1147private bool TryOptimizeParamsArray(BoundExpression possibleParamsArray, [NotNullWhen(true)] out BoundExpression? optimized)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (4)
159private bool TryRewriteSingleElementSpreadToList(BoundCollectionExpression node, TypeWithAnnotations listElementType, [NotNullWhen(true)] out BoundExpression? result) 216private static bool CanOptimizeSingleSpreadAsCollectionBuilderArgument(BoundCollectionExpression node, [NotNullWhen(true)] out BoundExpression? spreadExpression) 698bool tryGetToArrayMethod(TypeSymbol spreadTypeOriginalDefinition, WellKnownType wellKnownType, WellKnownMember wellKnownMember, [NotNullWhen(true)] out MethodSymbol? toArrayMethod) 900private bool TryConvertToSpan(BoundExpression expression, bool writableOnly, [NotNullWhen(true)] out BoundExpression? span)
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (2)
71private bool CanRewriteForEachAsFor(SyntaxNode forEachSyntax, TypeSymbol nodeExpressionType, [NotNullWhen(true)] out MethodSymbol? indexerGet, [NotNullWhen(true)] out MethodSymbol? lengthGet)
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (4)
17private static bool IsBinaryStringConcatenation([NotNullWhen(true)] BoundBinaryOperator? binaryOperator) 253static bool shouldRecurse(BoundExpression expr, [NotNullWhen(true)] out BoundBinaryOperator? binaryOperator) 394public bool IsCharToString(BoundCall call, [NotNullWhen(true)] out BoundExpression? charExpression) 436[NotNullWhen(true)] out MethodSymbol? readOnlySpanCtorRefParamChar,
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
47private static bool HasSideEffects([NotNullWhen(true)] BoundStatement? statement)
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
42private bool IsLikeTupleExpression(BoundExpression expr, [NotNullWhen(true)] out BoundTupleExpression? tuple)
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
753static bool hasNonIdentityConversion([NotNullWhen(true)] BoundExpression? expression)
Lowering\MethodToClassRewriter.cs (5)
55protected sealed override bool TryRewriteLocal(LocalSymbol local, [NotNullWhen(true)] out LocalSymbol? newLocal) 181private bool TryReplaceWithProxy(Symbol parameterOrLocal, SyntaxNode syntax, [NotNullWhen(true)] out BoundNode? replacement) 236private bool TryGetHoistedField(Symbol variable, [NotNullWhen(true)] out FieldSymbol? field) 416private static bool BaseReferenceInReceiverWasRewritten([NotNullWhen(true)] BoundExpression? originalReceiver, [NotNullWhen(true)] BoundExpression? rewrittenReceiver)
Parser\CharacterInfo.cs (1)
186public static bool IsValidIdentifier([NotNullWhen(true)] string? name)
Parser\LanguageParser.cs (2)
1866bool tryScanRecordStart([NotNullWhen(true)] out SyntaxToken? keyword, out SyntaxToken? recordModifier) 11938[NotNullWhen(true)] out ConditionalAccessExpressionSyntax? conditionalAccessExpression)
Parser\LanguageParser_InterpolatedString.cs (2)
296[NotNullWhen(true)] out string? currentLineMessage, 297[NotNullWhen(true)] out string? indentationLineMessage)
Parser\LanguageParser_Patterns.cs (3)
33private bool ConvertExpressionToType(ExpressionSyntax expression, [NotNullWhen(true)] out NameSyntax? type) 358bool parsePropertyPatternClause([NotNullWhen(true)] out PropertyPatternClauseSyntax? propertyPatternClauseResult) 454private bool ConvertTypeToExpression(TypeSyntax type, [NotNullWhen(true)] out ExpressionSyntax? expr, bool permitTypeArguments = false)
Parser\Lexer_RawStringLiteral.cs (2)
393[NotNullWhen(true)] out string? currentLineMessage, 394[NotNullWhen(true)] out string? indentationLineMessage)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
442private bool IncludeNamedType([NotNullWhen(true)] INamedTypeSymbol? namedType)
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
194private static bool IsInitOnly([NotNullWhen(true)] IMethodSymbol? symbol)
Symbols\AssemblySymbol.cs (1)
1014bool isValidCandidate([NotNullWhen(true)] NamedTypeSymbol? candidate, bool isWellKnownType)
Symbols\MemberSymbolExtensions.cs (1)
105internal static bool TryGetInstanceExtensionParameter(this Symbol symbol, [NotNullWhen(true)] out ParameterSymbol? extensionParameter)
Symbols\Source\SourceMemberContainerSymbol.cs (2)
1432internal static bool HasAsyncMethodBuilderAttribute(Symbol symbol, [NotNullWhen(true)] out TypeSymbol? builderArgument) 2526public override bool Equals([NotNullWhen(true)] object? obj)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1239internal static bool IsValidCollectionBuilderType([NotNullWhen(true)] TypeSymbol? builderType)
Symbols\SymbolExtensions.cs (1)
39public static bool IsNestedType([NotNullWhen(true)] this Symbol? symbol)
Symbols\Synthesized\GeneratedNameParser.cs (7)
89internal static bool TryParseSourceMethodNameFromGeneratedName(string generatedName, GeneratedNameKind requiredKind, [NotNullWhen(true)] out string? methodName) 116internal static bool TryParseLocalFunctionName(string generatedName, [NotNullWhen(true)] out string? localFunctionName) 164internal static bool TryParseAnonymousTypeParameterName(string typeParameterName, [NotNullWhen(true)] out string? propertyName) 177internal static bool TryParsePrimaryConstructorParameterFieldName(string fieldName, [NotNullWhen(true)] out string? parameterName) 215internal static bool TryParseFileTypeName(string generatedName, [NotNullWhen(true)] out string? displayFileName, [NotNullWhen(true)] out byte[]? checksum, [NotNullWhen(true)] out string? originalTypeName)
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
143internal override bool GetGuidString([NotNullWhen(true)] out string? guidString)
Symbols\TypeSymbolExtensions.cs (3)
158public static bool IsNullableType(this TypeSymbol? type, [NotNullWhen(true)] out TypeSymbol? underlyingType) 1649public static bool TryAsDynamicIfNoPia(this TypeSymbol type, NamedTypeSymbol containingType, [NotNullWhen(true)] out TypeSymbol? result) 1890internal static bool IsCustomTaskType(this NamedTypeSymbol type, [NotNullWhen(true)] out TypeSymbol? builderArgument)
Syntax\CSharpSyntaxTree.cs (2)
91public abstract bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root); 884protected override bool TryGetRootCore([NotNullWhen(true)] out SyntaxNode? root)
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (2)
49public override bool TryGetText([NotNullWhen(true)] out SourceText? text) 79public override bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root)
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
72public override bool TryGetText([NotNullWhen(true)] out SourceText? text)
Syntax\LambdaUtilities.cs (1)
285public static bool TryGetLambdaBodies(SyntaxNode node, [NotNullWhen(true)] out SyntaxNode? lambdaBody1, out SyntaxNode? lambdaBody2)
Syntax\SyntaxFacts.cs (2)
453internal static bool IsDeclarationExpressionType(SyntaxNode node, [NotNullWhen(true)] out DeclarationExpressionSyntax? parent) 533internal static bool IsTopLevelStatement([NotNullWhen(true)] GlobalStatementSyntax? syntax)
Syntax\SyntaxNormalizer.cs (1)
329private static bool IsAccessorListFollowedByInitializer([NotNullWhen(true)] SyntaxNode? node)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
AbstractRazorLspServiceFactory.cs (1)
30public bool TryGetService(Type type, [NotNullWhen(true)] out object? service) => lspServices.TryGetService(type, out service);
IRazorLspServices.cs (1)
16bool TryGetService(Type type, [NotNullWhen(true)] out object? service);
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 (14)
Extensions\Extensions.cs (1)
259private static bool TryGetVSCompletionListSetting(ClientCapabilities clientCapabilities, [NotNullWhen(returnValue: true)] out VSInternalCompletionListSetting? completionListSetting)
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)
Handler\Completion\Extensions.cs (1)
51[NotNullWhen(true)] out CompletionListCache.CacheEntry? cacheEntry)
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
80protected abstract bool TryCreateUnchangedReport(TextDocumentIdentifier identifier, string resultId, [NotNullWhen(true)] out TReport? report);
Handler\Diagnostics\WorkspacePullDiagnosticHandler.cs (1)
49protected override bool TryCreateUnchangedReport(TextDocumentIdentifier identifier, string resultId, [NotNullWhen(true)] out VSInternalWorkspaceDiagnosticReport[]? report)
ILanguageInfoProvider.cs (1)
23bool TryGetLanguageInformation(DocumentUri uri, string? lspLanguageId, [NotNullWhen(true)] out LanguageInformation? languageInformation);
LanguageInfoProvider.cs (1)
47public bool TryGetLanguageInformation(DocumentUri requestUri, string? lspLanguageId, [NotNullWhen(true)] out LanguageInformation? languageInformation)
LspServices\LspServices.cs (1)
120public bool TryGetService(Type type, [NotNullWhen(true)] out object? service)
Protocol\DocumentUri.cs (1)
71public override bool Equals([NotNullWhen(true)] object? obj) => obj is DocumentUri other && this.Equals(other);
RoslynLanguageServer.cs (1)
166public override bool TryGetLanguageForRequest(string methodName, object? serializedParameters, [NotNullWhen(true)] out string? language)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractLanguageServer.cs (1)
185public 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)
521internal bool TryGetLanguageForUri(DocumentUri uri, [NotNullWhen(true)] out string? language)
Microsoft.CodeAnalysis.Workspaces.MSBuild (10)
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)
46public 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)
MSBuild\SolutionFileReader.SolutionFilterReader.cs (1)
23public static bool TryRead(string filterFilename, PathResolver pathResolver, [NotNullWhen(true)] out string? solutionFilename, out ImmutableHashSet<string> projectFilter)
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)
14public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] string? value) 18public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue: false)] string? value)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (6)
89internal static bool IsValidClrTypeName([NotNullWhen(returnValue: true)] this string? name) 97internal static bool IsValidClrNamespaceName([NotNullWhen(returnValue: true)] this string? name) 135[NotNullWhen(returnValue: true)] out string? result) 150[NotNullWhen(returnValue: true)] out string? result) 246[NotNullWhen(returnValue: true)] out byte[]? result, 247[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)
86public 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)
299private 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)
31public 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 (3)
MemoryCache.cs (3)
734internal bool TryGetValue(object key, [NotNullWhen(true)] out CacheEntry? entry) 738internal bool TryGetValue(ReadOnlySpan<char> key, [NotNullWhen(true)] out CacheEntry? entry) 743internal 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)
595[NotNullWhen(true)] out ConstructorInfo? matchingConstructor, 596[NotNullWhen(true)] out int?[]? parameterMap) 629[NotNullWhen(true)] out ConstructorInfo? matchingConstructor, 630[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 (3)
DnsServiceEndpointProviderFactory.cs (1)
18public bool TryCreateProvider(ServiceEndpointQuery query, [NotNullWhen(true)] out IServiceEndpointProvider? provider)
DnsSrvServiceEndpointProviderFactory.cs (1)
23public bool TryCreateProvider(ServiceEndpointQuery query, [NotNullWhen(true)] out IServiceEndpointProvider? provider)
Resolver\DnsResolver.cs (1)
328static bool TryReadAddress(in DnsResourceRecord record, QueryType type, [NotNullWhen(true)] out IPAddress? target)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
69public bool TryCreateProvider(ServiceEndpointQuery query, [NotNullWhen(true)] out IServiceEndpointProvider? resolver)
Microsoft.Extensions.Validation (7)
IValidatableInfoResolver.cs (2)
24bool TryGetValidatableTypeInfo(Type type, [NotNullWhen(true)] out IValidatableInfo? validatableInfo); 32bool TryGetValidatableParameterInfo(ParameterInfo parameterInfo, [NotNullWhen(true)] out IValidatableInfo? validatableInfo);
RuntimeValidatableParameterInfoResolver.cs (2)
18public bool TryGetValidatableTypeInfo(Type type, [NotNullWhen(true)] out IValidatableInfo? validatableInfo) 24public bool TryGetValidatableParameterInfo(ParameterInfo parameterInfo, [NotNullWhen(true)] out IValidatableInfo? validatableInfo)
TypeExtensions.cs (1)
72public static bool TryGetRequiredAttribute(this ValidationAttribute[] attributes, [NotNullWhen(true)] out RequiredAttribute? requiredAttribute)
ValidationOptions.cs (2)
40public bool TryGetValidatableTypeInfo(Type type, [NotNullWhen(true)] out IValidatableInfo? validatableTypeInfo) 62public bool TryGetValidatableParameterInfo(ParameterInfo parameterInfo, [NotNullWhen(true)] out IValidatableInfo? validatableInfo)
Microsoft.Extensions.Validation.Tests (4)
ValidatableParameterInfoTests.cs (2)
390public bool TryGetValidatableTypeInfo(Type type, [NotNullWhen(true)] out IValidatableInfo? validatableInfo) 401public bool TryGetValidatableParameterInfo(ParameterInfo parameterInfo, [NotNullWhen(true)] out IValidatableInfo? validatableInfo)
ValidatableTypeInfoTests.cs (2)
815public bool TryGetValidatableTypeInfo(Type type, [NotNullWhen(true)] out IValidatableInfo? validatableInfo) 826public bool TryGetValidatableParameterInfo(ParameterInfo parameterInfo, [NotNullWhen(true)] out IValidatableInfo? validatableInfo)
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.Maui.Controls (4)
NavigationStepRequest.cs (1)
118 internal bool TryGetValue(Page page, [NotNullWhen(true)] out NavigationStepRequest? request)
TypeConversionHelper.cs (2)
72 private static bool TryGetTypeConverter(Type type, [NotNullWhen(true)] out TypeConverter? converter) 81 private static bool TryConvertUsingImplicitCastOperator(object value, Type targetType, [NotNullWhen(true)] out object? result)
Xaml\TypeConversionExtensions.cs (1)
87 internal static bool TryGetTypeConverter(this MemberInfo memberInfo, [NotNullWhen(true)] out TypeConverter converter)
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 (42)
System\Windows\clipboard.cs (2)
444[NotNullWhen(true), MaybeNullWhen(false)] out T data) 478[NotNullWhen(true), MaybeNullWhen(false)] out T data)
System\Windows\dataobject.cs (7)
102bool IDataObjectInternal<DataObject, IDataObject>.TryUnwrapUserDataObject([NotNullWhen(true)] out IDataObject? dataObject) => 105internal bool TryUnwrapUserDataObject([NotNullWhen(true)] out IDataObject? dataObject) 148[NotNullWhen(true), MaybeNullWhen(false)] out T data) 159[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 164[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 168[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 175[NotNullWhen(true), MaybeNullWhen(false)] out T data)
System\Windows\DataObjectExtensions.cs (4)
34[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 43[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 53[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 65[NotNullWhen(true), MaybeNullWhen(false)] out T data) =>
System\Windows\ITypedDataObject.cs (4)
28[NotNullWhen(true), MaybeNullWhen(false)] out T data); 33[NotNullWhen(true), MaybeNullWhen(false)] out T data); 39[NotNullWhen(true), MaybeNullWhen(false)] out T data); 48[NotNullWhen(true), MaybeNullWhen(false)] out T data);
System\Windows\Nrbf\SerializationRecordExtensions.cs (18)
14private delegate bool TryGetDelegate(SerializationRecord record, [NotNullWhen(true)] out object? value); 16private static bool TryGet(TryGetDelegate get, SerializationRecord record, [NotNullWhen(true)] out object? value) 34public static bool TryGetPointF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 38static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 59public static bool TryGetRectangleF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 63static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 91public static bool TryGetPrimitiveType(this SerializationRecord record, [NotNullWhen(true)] out object? value) 95static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 116public static bool TryGetPrimitiveList(this SerializationRecord record, [NotNullWhen(true)] out object? list) 120static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? list) 166public static bool TryGetPrimitiveArrayList(this SerializationRecord record, [NotNullWhen(true)] out object? value) 170static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 213public static bool TryGetPrimitiveArray(this SerializationRecord record, [NotNullWhen(true)] out object? value) 217static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 253public static bool TryGetPrimitiveHashtable(this SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 257static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 317static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? exception) 337[NotNullWhen(true)] out object? value)
System\Windows\Nrbf\WpfNrbfSerializer.cs (2)
24public static bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type) 41public static bool TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value) =>
System\Windows\Ole\DataObjectAdapter.cs (4)
34[MaybeNullWhen(false), NotNullWhen(true)] out T data) => DataObject.TryGetData(out data); 37[MaybeNullWhen(false), NotNullWhen(true)] out T data) => DataObject.TryGetData(format, out data); 41[NotNullWhen(true), MaybeNullWhen(false)] out T data) => DataObject.TryGetData(format, autoConvert, out data); 46[MaybeNullWhen(false), NotNullWhen(true)] out T data) => DataObject.TryGetData(format, resolver, autoConvert, out data);
System\Windows\Ole\WpfOleServices.cs (1)
73[NotNullWhen(true)] out T data)
System.Collections (1)
System\Collections\Generic\SortedSetEqualityComparer.cs (1)
52public override bool Equals([NotNullWhen(true)] object? obj)
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (1)
307public override bool Equals([NotNullWhen(true)] object? obj)
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
851private 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)
610[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)
530public 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)
387public 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)
1945public override bool Equals([NotNullWhen(true)] object? obj) 2139public override bool Equals([NotNullWhen(true)] object? obj)
System\Diagnostics\ActivityContext.cs (1)
111public 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)
300private static bool TryFindHierarchyMount(CGroupVersion cgroupVersion, string subsystem, [NotNullWhen(true)] out string? root, [NotNullWhen(true)] out string? path) 312internal static bool TryFindHierarchyMount(CGroupVersion cgroupVersion, string mountInfoFilePath, string subsystem, [NotNullWhen(true)] out string? root, [NotNullWhen(true)] out string? path) 371private static bool TryFindCGroupPathForSubsystem(CGroupVersion cgroupVersion, string subsystem, [NotNullWhen(true)] out string? path) 382internal 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.Common.Tests (1)
Helpers.cs (1)
50public static bool TryGetPdfPrinterName([NotNullWhen(true)] out string? printerName)
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)
850public 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)
714[NotNullWhen(returnValue: true)] out string? key, 715[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.Compression (5)
System\IO\Compression\ZipBlocks.cs (5)
419private static bool TryReadBlockCore(Span<byte> blockContents, int bytesRead, [NotNullWhen(returnValue: true)] out Zip64EndOfCentralDirectoryLocator? zip64EOCDLocator) 487private static bool TryReadBlockCore(Span<byte> blockContents, int bytesRead, [NotNullWhen(returnValue: true)] out Zip64EndOfCentralDirectoryRecord? zip64EOCDRecord) 708private static bool TryReadBlockInitialize(ReadOnlySpan<byte> buffer, [NotNullWhen(returnValue: true)] out ZipCentralDirectoryFileHeader? header, out int bytesRead, out uint compressedSizeSmall, out uint uncompressedSizeSmall, out ushort diskNumberStartSmall, out uint relativeOffsetOfLocalHeaderSmall) 788public static bool TryReadBlock(ReadOnlySpan<byte> buffer, Stream furtherReads, bool saveExtraFieldsAndComments, out int bytesRead, [NotNullWhen(returnValue: true)] out ZipCentralDirectoryFileHeader? header) 913private static bool TryReadBlockInitialize(Stream stream, Span<byte> blockContents, int bytesRead, [NotNullWhen(returnValue: true)] out ZipEndOfCentralDirectoryBlock? eocdBlock, out bool readComment)
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)
299internal 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) 49internal 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)
514public override bool Equals([NotNullWhen(true)] object? obj) => ReferenceEquals(this, obj);
System.Net.Http (97)
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 (1)
48public static bool TryGetHeaderName(ReadOnlySpan<char> nameSpan, [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) 194public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out ContentDispositionHeaderValue? parsedValue) 445private 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)
20public 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)
272public bool TryGetValues(string name, [NotNullWhen(true)] out IEnumerable<string>? values) 283internal bool TryGetValues(HeaderDescriptor descriptor, [NotNullWhen(true)] out IEnumerable<string>? values) 770internal bool TryGetHeaderValue(HeaderDescriptor descriptor, [NotNullWhen(true)] out object? value) 785private 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)
725private static bool TryDetectEncoding(ReadOnlySpan<byte> data, [NotNullWhen(true)] out Encoding? encoding, out int preambleLength)
System\Net\Http\HttpMethod.cs (2)
55public bool Equals([NotNullWhen(true)] HttpMethod? other) => 59public 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)
131private bool TryGetPooledHttp3Connection(HttpRequestMessage request, [NotNullWhen(true)] out Http3Connection? connection, [NotNullWhen(false)] out HttpConnectionWaiter<Http3Connection?>? waiter, out bool streamAvailable) 610private 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)
548public 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 (2)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
42public override bool Equals([NotNullWhen(true)] object? obj) =>
System\Net\Dns.cs (1)
390private static bool ValidateAddressFamily(ref AddressFamily addressFamily, string hostName, bool justAddresses, [NotNullWhen(false)] out object? resultOnFailure)
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)
623public 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)
240public static bool TryParse([NotNullWhen(true)] string? ipString, [NotNullWhen(true)] out IPAddress? address) 258public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out IPAddress? result) 264public static bool TryParse(ReadOnlySpan<char> ipSpan, [NotNullWhen(true)] out IPAddress? address) 271static bool IUtf8SpanParsable<IPAddress>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 275static bool IParsable<IPAddress>.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 280static bool ISpanParsable<IPAddress>.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [NotNullWhen(true)] out IPAddress? result) => 680public 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)
322public override bool Equals([NotNullWhen(true)] object? obj) => 365static 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)
1651private 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)
78public 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 (3)
System\Buffers\NIndex.cs (1)
145public override bool Equals([NotNullWhen(true)] object? value) => value is NIndex other && _value == other._value;
System\Buffers\NRange.cs (1)
47public override bool Equals([NotNullWhen(true)] object? value) =>
System\Numerics\Tensors\netcore\TensorShape.cs (1)
959public override bool Equals([NotNullWhen(true)] object? obj)
System.ObjectModel (1)
System\ComponentModel\TypeConverterAttribute.cs (1)
61public override bool Equals([NotNullWhen(true)] object? obj)
System.Private.CoreLib (367)
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)
117public override bool Equals([NotNullWhen(true)] object? obj) 212public static bool TryParse([NotNullWhen(true)] string? s, out char result) 1952static bool INumberBase<char>.TryParse([NotNullWhen(true)] string? s, NumberStyles style, IFormatProvider? provider, out char result) => TryParse(s, out result); 1962static 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)
252public 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) 1478public 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)
187internal 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)
357public static bool TryParse([NotNullWhen(true)] string? input, out Guid result) 430public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.GuidFormat)] string? format, out Guid result) 1072public override bool Equals([NotNullWhen(true)] object? o) => o is Guid g && EqualsCore(this, g); 1828public 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) 2176public 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) 1924public 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) 1374public 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) 1377public 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)
579public override readonly bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix3x2.Impl.cs (1)
400public override readonly bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.cs (1)
1036public override readonly bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\Matrix4x4.Impl.cs (1)
1606public override readonly bool Equals([NotNullWhen(true)] object? obj)
src\libraries\System.Private.CoreLib\src\System\Numerics\Plane.cs (1)
182public 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)
1038public 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)
1051public 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)
1091public 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)
675internal 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\ComWrappers.cs (2)
100public static unsafe bool TryGetObject(IntPtr unknown, [NotNullWhen(true)] out object? obj) 1078[NotNullWhen(true)] out object? retValue)
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)
171public override readonly bool Equals([NotNullWhen(true)] object? o) => o is GCHandle other && Equals(other);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (1)
102public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is GCHandle<T> handle && Equals(handle);
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\InteropServices\PinnedGCHandle.T.cs (1)
136public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is PinnedGCHandle<T> handle && Equals(handle);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (3)
237protected abstract bool TryGetOrLoadType(TKey key, [NotNullWhen(true)] out Type? type); 315protected override bool TryGetOrLoadType(string key, [NotNullWhen(true)] out Type? type) 369protected override bool TryGetOrLoadType(Type key, [NotNullWhen(true)] out Type? type)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (2)
51public readonly bool TryGetTarget([NotNullWhen(true)] out T? target) 110public override readonly bool Equals([NotNullWhen(true)] object? obj) => obj is WeakGCHandle<T> handle && Equals(handle);
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) 1497public 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) 762static 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)
779public 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 (2)
144public static bool TryOpenExisting(string name, NamedWaitHandleOptions options, [NotNullWhen(true)] out EventWaitHandle? result) => 148public 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 (2)
164public static bool TryOpenExisting(string name, NamedWaitHandleOptions options, [NotNullWhen(true)] out Mutex? result) => 167public 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 (2)
157public static bool TryOpenExisting(string name, NamedWaitHandleOptions options, [NotNullWhen(true)] out Semaphore? result) => 161public 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) => 548public 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)
349private static bool TryLoadTzFile(string tzFilePath, [NotNullWhen(true)] ref byte[]? rawData, [NotNullWhen(true)] ref string? id) 412private 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 && 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)
215public static bool TryParse(ReadOnlySpan<char> assemblyName, [NotNullWhen(true)] out AssemblyNameInfo? result)
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\TypeName.cs (1)
524public 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\RuntimeHandles.cs (1)
1753public 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 (12)
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\UriHelper.cs (1)
622public static bool StripBidiControlCharacters(ReadOnlySpan<char> strToClean, [NotNullWhen(true)] out string? stripped)
System.Private.Windows.Core (73)
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)
20static abstract bool TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value); 25static abstract bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (30)
63internal delegate bool TryGetDelegate(SerializationRecord record, [NotNullWhen(true)] out object? value); 65internal static bool TryGet(TryGetDelegate get, SerializationRecord record, [NotNullWhen(true)] out object? value) 83public static bool TryGetPoint(this SerializationRecord record, [NotNullWhen(true)] out object? value) 87static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 108public static bool TryGetSize(this SerializationRecord record, [NotNullWhen(true)] out object? value) 112static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 133public static bool TryGetRectangle(this SerializationRecord record, [NotNullWhen(true)] out object? value) 137static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 164public static bool TryGetPointF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 168static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 189public static bool TryGetSizeF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 193static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 214public static bool TryGetRectangleF(this SerializationRecord record, [NotNullWhen(true)] out object? value) 218static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 245public static bool TryGetColor(this SerializationRecord record, [NotNullWhen(true)] out object? value) 249static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 284public static bool TryGetPrimitiveType(this SerializationRecord record, [NotNullWhen(true)] out object? value) 288static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 315public static bool TryGetPrimitiveList(this SerializationRecord record, [NotNullWhen(true)] out object? list) 319static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? list) 365public static bool TryGetPrimitiveArrayList(this SerializationRecord record, [NotNullWhen(true)] out object? value) 369static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 412public static bool TryGetPrimitiveArray(this SerializationRecord record, [NotNullWhen(true)] out object? value) 416static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? value) 452public static bool TryGetPrimitiveHashtable(this SerializationRecord record, [NotNullWhen(true)] out Hashtable? hashtable) 462public static bool TryGetPrimitiveHashtable(this SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 466static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? hashtable) 526static bool Get(SerializationRecord record, [NotNullWhen(true)] out object? exception) 546[NotNullWhen(true)] out object? value) 562[NotNullWhen(true)] out object? value) =>
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
77[NotNullWhen(true)] out T? @object)
System\Private\Windows\Ole\Composition.cs (4)
161[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 167[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 172[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 176[NotNullWhen(true), MaybeNullWhen(false)] out T data) =>
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (9)
96[NotNullWhen(true)] out T? data) 253[NotNullWhen(true)] out T? data) 288[NotNullWhen(true)] out T? data) 348[NotNullWhen(true)] out T? data) 430[NotNullWhen(true)] out T? data) 593[NotNullWhen(true), MaybeNullWhen(false)] out T data) 609[NotNullWhen(true), MaybeNullWhen(false)] out T data) 623[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 627[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) 180[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 186[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 191[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 195[NotNullWhen(true), MaybeNullWhen(false)] out T data) =>
System\Private\Windows\Ole\IDataObjectInternal.cs (5)
98[NotNullWhen(true), MaybeNullWhen(false)] out T data); 106[NotNullWhen(true), MaybeNullWhen(false)] out T data); 116[NotNullWhen(true), MaybeNullWhen(false)] out T data); 154[NotNullWhen(true), MaybeNullWhen(false)] out T data); 194bool TryUnwrapUserDataObject([NotNullWhen(true)] out TIDataObject? dataObject);
System\Private\Windows\Ole\IOleServices.cs (1)
46[NotNullWhen(true)] out T data);
System\Private\Windows\Ole\TypeBinder.cs (1)
94public bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type)
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 (21)
System\Private\Windows\Ole\BinaryFormatUtilitesTestsBase.cs (1)
47[NotNullWhen(true)] out T? @object);
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (1)
24[NotNullWhen(true)] out T? @object) where T : default
System\Private\Windows\Ole\ClipboardCoreTests.cs (1)
46static unsafe bool IOleServices.TryGetObjectFromDataObject<T>(IDataObject* dataObject, string requestedFormat, [NotNullWhen(true)] out T data) => throw new NotImplementedException();
System\Private\Windows\Ole\MockOleServices.cs (1)
27[NotNullWhen(true)] out T data)
System\Private\Windows\Ole\TestDataObject.cs (7)
29bool IDataObjectInternal<TestDataObject<TOleServices>, ITestDataObject>.TryUnwrapUserDataObject([NotNullWhen(true)] out ITestDataObject? dataObject) 46internal virtual bool TryUnwrapUserDataObject([NotNullWhen(true)] out ITestDataObject? dataObject) 73[MaybeNullWhen(false), NotNullWhen(true)] out T data) => 78[MaybeNullWhen(false), NotNullWhen(true)] out T data) => 84[MaybeNullWhen(false), NotNullWhen(true)] out T data) => 91[MaybeNullWhen(false), NotNullWhen(true)] out T data) => 98[NotNullWhen(true), MaybeNullWhen(false)] out T data)
System\Private\Windows\Ole\TestDataObjectAdapter.cs (4)
31[MaybeNullWhen(false), NotNullWhen(true)] out T data) => 35[MaybeNullWhen(false), NotNullWhen(true)] out T data) => 40[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 46[MaybeNullWhen(false), NotNullWhen(true)] out T data) =>
System\Private\Windows\Ole\TypeBinderTests.cs (6)
161public static bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type) 167public static bool TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value) 182public static bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type) 188public static bool TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value) 204public static bool TryBindToType(TypeName typeName, [NotNullWhen(true)] out Type? type) 210public static bool TryGetObject(SerializationRecord record, [NotNullWhen(true)] out object? value)
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)
1028public 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)
43public 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)
1360public 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)
215public 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)
524public 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)
353public static bool IsAssignableFrom(this Type type, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] Type? c) 361public 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) 5277public 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 (39)
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);
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsaAlgorithm.cs (2)
221public bool Equals([NotNullWhen(true)] CompositeMLDsaAlgorithm? other) => other is not null && other.Name == Name; 224public override bool Equals([NotNullWhen(true)] object? obj) => obj is CompositeMLDsaAlgorithm alg && alg.Name == Name;
src\libraries\Common\src\System\Security\Cryptography\MLDsaAlgorithm.cs (2)
133public bool Equals([NotNullWhen(true)] MLDsaAlgorithm? other) => other is not null && other.Name == Name; 136public override bool Equals([NotNullWhen(true)] object? obj) => obj is MLDsaAlgorithm alg && alg.Name == Name;
src\libraries\Common\src\System\Security\Cryptography\MLKemAlgorithm.cs (2)
121public bool Equals([NotNullWhen(true)] MLKemAlgorithm? other) => other is not null && other.Name == Name; 124public override bool Equals([NotNullWhen(true)] object? obj) => obj is MLKemAlgorithm alg && alg.Name == Name;
src\libraries\Common\src\System\Security\Cryptography\SlhDsaAlgorithm.cs (2)
214public bool Equals([NotNullWhen(true)] SlhDsaAlgorithm? other) => other is not null && other.Name == Name; 217public override bool Equals([NotNullWhen(true)] object? obj) => obj is SlhDsaAlgorithm alg && alg.Name == Name;
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)
299public override bool Equals([NotNullWhen(true)] object? obj) => obj is X509Certificate other && Equals(other); 301public virtual bool Equals([NotNullWhen(true)] X509Certificate? other)
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseHeaderLabel.cs (1)
84public override bool Equals([NotNullWhen(true)] object? obj) => obj is CoseHeaderLabel otherObj && Equals(otherObj);
System\Security\Cryptography\Cose\CoseHeaderValue.cs (1)
239public override bool Equals([NotNullWhen(true)] object? obj) => obj is CoseHeaderValue otherObj && Equals(otherObj);
System.Security.Cryptography.Pkcs (23)
Internal\Cryptography\PkcsHelpers.cs (2)
339[NotNullWhen(true)] out RSAEncryptionPadding? rsaEncryptionPadding, 340[NotNullWhen(false)] out Exception? exception)
System\Security\Cryptography\Pkcs\CmsSignature.cs (2)
58[NotNullWhen(true)] out string? signatureAlgorithm, 59[NotNullWhen(true)] out byte[]? signatureValue,
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (2)
114[NotNullWhen(true)] out string? signatureAlgorithm, 115[NotNullWhen(true)] out byte[]? signatureValue,
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (2)
119[NotNullWhen(true)] out string? signatureAlgorithm, 120[NotNullWhen(true)] out byte[]? signatureValue,
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (5)
112[NotNullWhen(true)] out byte[]? signatureValue) 219[NotNullWhen(true)] out string? signatureAlgorithm, 220[NotNullWhen(true)] out byte[]? signatureValue, 339[NotNullWhen(true)] out string? signatureAlgorithm, 340[NotNullWhen(true)] out byte[]? signatureValue,
System\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (2)
95[NotNullWhen(true)] out string? signatureAlgorithm, 96[NotNullWhen(true)] out byte[]? signatureValue,
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (2)
75[NotNullWhen(true)] out Rfc3161TimestampToken? token, 343[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, 153[NotNullWhen(true)] out X509Certificate2? signerCertificate, 290public 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)
395internal bool TryGetValue(int index, [NotNullWhen(true)] out byte[]? value)
System\Text\Json\Document\JsonDocument.Parse.cs (2)
394public static bool TryParseValue(ref Utf8JsonReader reader, [NotNullWhen(true)] out JsonDocument? document) 448[NotNullWhen(true)] out JsonDocument? document,
System\Text\Json\Document\JsonElement.cs (1)
400public bool TryGetBytesFromBase64([NotNullWhen(true)] out byte[]? value)
System\Text\Json\Document\JsonElement.Parse.cs (1)
159public static bool TryParseValue(ref Utf8JsonReader reader, [NotNullWhen(true)] out JsonElement? element)
System\Text\Json\JsonEncodedText.cs (1)
162public 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)
426public bool TryGetExistingJsonPointer(in JsonSchemaExporterContext context, [NotNullWhen(true)] out string? existingJsonPointer)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
618[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)
80public bool TryGetTypeInfo(Type type, [NotNullWhen(true)] out JsonTypeInfo? typeInfo) 132internal bool TryGetTypeInfoCached(Type type, [NotNullWhen(true)] out JsonTypeInfo? typeInfo) 159internal bool TryGetPolymorphicTypeInfoForRootType(object rootValue, [NotNullWhen(true)] out JsonTypeInfo? polymorphicTypeInfo) 237public bool TryGetTypeInfo(Type type, [NotNullWhen(true)] out JsonTypeInfo? typeInfo) 449[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)
1062public 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.Channels (1)
System\Threading\Channels\ChannelUtilities.cs (1)
90internal static bool TryDequeue<TAsyncOp>(ref TAsyncOp? head, [NotNullWhen(true)] out TAsyncOp? op)
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
191private bool TryLeaseUnsynchronized(int permitCount, [NotNullWhen(true)] out RateLimitLease? lease)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
218private 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)
221private bool TryLeaseUnsynchronized(int permitCount, [NotNullWhen(true)] out RateLimitLease? lease)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
225private bool TryLeaseUnsynchronized(int tokenCount, [NotNullWhen(true)] out RateLimitLease? lease)
System.Threading.Tasks.Dataflow (21)
Base\DataflowBlock.cs (2)
1572public bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items) 1869[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)
127public bool TryReceive(Predicate<T[]>? filter, [NotNullWhen(true)] out T[]? item) 133public 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); } 384public bool TryReceive(Predicate<Tuple<IList<T1>, IList<T2>, IList<T3>>>? filter, [NotNullWhen(true)] out Tuple<IList<T1>, IList<T2>, IList<T3>>? item) 390public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<IList<T1>, IList<T2>, IList<T3>>>? items) { return _source.TryReceiveAll(out items); }
Blocks\BroadcastBlock.cs (2)
154bool IReceivableSourceBlock<T>.TryReceiveAll([NotNullWhen(true)] out IList<T>? items) { return _source.TryReceiveAll(out items); } 593internal bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items)
Blocks\BufferBlock.cs (1)
189public bool TryReceiveAll([NotNullWhen(true)] out IList<T>? items) { return _source.TryReceiveAll(out items); }
Blocks\JoinBlock.cs (4)
116public bool TryReceive(Predicate<Tuple<T1, T2>>? filter, [NotNullWhen(true)] out Tuple<T1, T2>? item) 122public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<T1, T2>>? items) { return _source.TryReceiveAll(out items); } 335public bool TryReceive(Predicate<Tuple<T1, T2, T3>>? filter, [NotNullWhen(true)] out Tuple<T1, T2, T3>? item) 341public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<T1, T2, T3>>? items) { return _source.TryReceiveAll(out items); }
Blocks\TransformBlock.cs (1)
353public bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items) { return _source.TryReceiveAll(out items); }
Blocks\TransformManyBlock.cs (1)
562public bool TryReceiveAll([NotNullWhen(true)] out IList<TOutput>? items) { return _source.TryReceiveAll(out items); }
Blocks\WriteOnceBlock.cs (1)
278bool IReceivableSourceBlock<T>.TryReceiveAll([NotNullWhen(true)] out IList<T>? items)
Internal\SourceCore.cs (1)
322internal 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 (45)
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)
4477public bool Contains([NotNullWhen(true)] Control? ctl) 9446private protected bool TryGetAccessibilityObject([NotNullWhen(true)] out AccessibleObject? accessibleObject) => 10779private 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)
3635internal 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 (3)
308[NotNullWhen(true), MaybeNullWhen(false)] out T data) 342[NotNullWhen(true), MaybeNullWhen(false)] out T data) 357[NotNullWhen(true), MaybeNullWhen(false)] out T data) => TryGetData(typeof(T).FullName!, out data);
System\Windows\Forms\OLE\DataObject.cs (8)
81bool IDataObjectInternal<DataObject, IDataObject>.TryUnwrapUserDataObject([NotNullWhen(true)] out IDataObject? dataObject) => 84internal virtual bool TryUnwrapUserDataObject([NotNullWhen(true)] out IDataObject? dataObject) 156[NotNullWhen(true), MaybeNullWhen(false)] out T data) 167[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 172[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 176[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 189[NotNullWhen(true), MaybeNullWhen(false)] out T data) => 266[NotNullWhen(true), MaybeNullWhen(false)] out T data)
System\Windows\Forms\OLE\DataObjectAdapter.cs (4)
31[MaybeNullWhen(false), NotNullWhen(true)] out T data) => DataObject.TryGetData(out data); 34[MaybeNullWhen(false), NotNullWhen(true)] out T data) => DataObject.TryGetData(format, out data); 38[NotNullWhen(true), MaybeNullWhen(false)] out T data) => DataObject.TryGetData(format, autoConvert, out data); 43[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)
63[NotNullWhen(true)] out T data) 76static unsafe bool TryGetBitmapData(Com.IDataObject* dataObject, [NotNullWhen(true)] out Bitmap? data)
System\Windows\Forms\OLE\WrappingDataObject.cs (1)
20internal override bool TryUnwrapUserDataObject([NotNullWhen(true)] out IDataObject? dataObject)
System\Windows\Forms\PropertyStore.cs (1)
85public 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)
624internal 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)
155protected 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)
231public bool TryGetData<T>([MaybeNullWhen(false), NotNullWhen(true)] out T data) 238public bool TryGetData<T>(string format, [MaybeNullWhen(false), NotNullWhen(true)] out T data) 245public bool TryGetData<T>(string format, bool autoConvert, [MaybeNullWhen(false), NotNullWhen(true)] out T data) 252public bool TryGetData<T>(string format, Func<TypeName, Type?> resolver, bool autoConvert, [MaybeNullWhen(false), NotNullWhen(true)] out T data)
System\Windows\Forms\DataObjectTests.cs (1)
395[NotNullWhen(true), MaybeNullWhen(false)] out T data)
System\Windows\Forms\Ole\BinaryFormatUtilitiesTests.cs (1)
20[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) => 34[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) => 33[MaybeNullWhen(false), NotNullWhen(true)] out T data) => TryGetData(format, out data);
System.Xaml (1)
System\Xaml\Replacements\DateTimeConverter2.cs (1)
27public override bool CanConvertTo(ITypeDescriptorContext? context, [NotNullWhen(true)] Type? destinationType)
Templates.Blazor.Tests (3)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
916internal 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)
916internal 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)
916internal 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)
916internal 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)
916internal 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)
Test.Utilities (413)
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)
14public static bool IsNullOrEmpty([NotNullWhen(returnValue: false)] string? value) 18public static bool IsNullOrWhiteSpace([NotNullWhen(returnValue: false)] string? value)
src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (6)
89internal static bool IsValidClrTypeName([NotNullWhen(returnValue: true)] this string? name) 97internal static bool IsValidClrNamespaceName([NotNullWhen(returnValue: true)] this string? name) 135[NotNullWhen(returnValue: true)] out string? result) 150[NotNullWhen(returnValue: true)] out string? result) 246[NotNullWhen(returnValue: true)] out byte[]? result, 247[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)
86public override bool Equals([NotNullWhen(true)] object? obj) => obj is SegmentedHashSetEqualityComparer<T>;
src\RoslynAnalyzers\Utilities\Compiler\Extensions\CompilationExtensions.cs (1)
31internal static bool TryGetOrCreateTypeByMetadataName(this Compilation compilation, string fullTypeName, [NotNullWhen(returnValue: true)] out INamedTypeSymbol? namedTypeSymbol) =>
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IMethodSymbolExtensions.cs (15)
89public static bool IsImplementationOfInterfaceMethod(this IMethodSymbol method, ITypeSymbol? typeArgument, [NotNullWhen(returnValue: true)] INamedTypeSymbol? interfaceType, string interfaceMethodName) 119public static bool IsDisposeImplementation([NotNullWhen(returnValue: true)] this IMethodSymbol? method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? iDisposable) 141public static bool IsAsyncDisposeImplementation([NotNullWhen(returnValue: true)] this IMethodSymbol? method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? iAsyncDisposable, [NotNullWhen(returnValue: true)] INamedTypeSymbol? valueTaskType) 231private static bool HasOverriddenDisposeCoreAsyncMethodSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? task) 244private static bool HasVirtualOrOverrideDisposeCoreAsyncMethodSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? valueTask) 321public static bool IsSerializationConstructor([NotNullWhen(returnValue: true)] this IMethodSymbol? method, INamedTypeSymbol? serializationInfoType, INamedTypeSymbol? streamingContextType) 327public static bool IsGetObjectData([NotNullWhen(returnValue: true)] this IMethodSymbol? method, INamedTypeSymbol? serializationInfoType, INamedTypeSymbol? streamingContextType) 395public static bool IsTaskFromResultMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? taskType) 404public static bool IsTaskConfigureAwaitMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? genericTaskType) 416public static bool IsAsyncDisposableConfigureAwaitMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? asyncDisposableType, [NotNullWhen(returnValue: true)] INamedTypeSymbol? taskAsyncEnumerableExtensions) 493public static bool IsLockMethod(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? systemThreadingMonitor)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IOperationExtensions.cs (5)
277public static bool TryGetEnclosingControlFlowGraph(this IOperation operation, [NotNullWhen(returnValue: true)] out ControlFlowGraph? cfg) 385public static bool IsWithinLambdaOrLocalFunction(this IOperation operation, [NotNullWhen(true)] out IOperation? containingLambdaOrLocalFunctionOperation) 421[NotNullWhen(returnValue: true)] out ITupleOperation? parentTupleOperation, 422[NotNullWhen(returnValue: true)] out IOperation? elementOfParentTupleContainingTuple) 505[NotNullWhen(true)] out IArgumentOperation? result)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (14)
23public static bool IsDefaultConstructor([NotNullWhen(returnValue: true)] this ISymbol? symbol) 38public static bool IsIndexer([NotNullWhen(returnValue: true)] this ISymbol? symbol) 43public static bool IsPropertyWithBackingField([NotNullWhen(returnValue: true)] this ISymbol? symbol, [NotNullWhen(true)] out IFieldSymbol? backingField) 168public static bool IsImplementationOfInterfaceMember(this ISymbol symbol, [NotNullWhen(returnValue: true)] ISymbol? interfaceMember) 177public static bool IsOverrideOrImplementationOfInterfaceMember(this ISymbol symbol, [NotNullWhen(returnValue: true)] ISymbol? interfaceMember) 196public static bool IsImplementationOfAnyExplicitInterfaceMember([NotNullWhen(returnValue: true)] this ISymbol? symbol) 228public static bool IsReadOnlyFieldOrProperty([NotNullWhen(returnValue: true)] this ISymbol? symbol) 240public static AttributeData? GetAttribute(this ISymbol symbol, [NotNullWhen(true)] INamedTypeSymbol? attributeType) 292public static bool HasDerivedTypeAttribute(this ITypeSymbol symbol, [NotNullWhen(returnValue: true)] INamedTypeSymbol? attribute) 331public static bool HasDerivedMethodAttribute(this IMethodSymbol symbol, [NotNullWhen(returnValue: true)] INamedTypeSymbol? attribute) 356public static bool IsLambdaOrLocalFunction([NotNullWhen(returnValue: true)] this ISymbol? symbol) 359public static bool IsConst([NotNullWhen(returnValue: true)] this ISymbol? symbol) 371public static bool IsReadOnly([NotNullWhen(returnValue: true)] this ISymbol? symbol)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ITypeSymbolExtensions.cs (8)
39public static bool Inherits([NotNullWhen(returnValue: true)] this ITypeSymbol? type, [NotNullWhen(returnValue: true)] ITypeSymbol? possibleBase) 64public static bool DerivesFrom([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol, [NotNullWhen(returnValue: true)] ITypeSymbol? candidateBaseType, bool baseTypesOnly = false, bool checkTypeParameterConstraints = true) 253public static bool CanHoldNullValue([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol) 258public static bool IsNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol) 261public static bool IsReferenceTypeOrNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol) 264public static bool IsNullableOfBoolean([NotNullWhen(returnValue: true)] this ITypeSymbol? typeSymbol)
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (4)
192private static bool TryGetProperty<T, TProperty>([NotNullWhen(true)] Type? type, string propertyName, [NotNullWhen(true)] out PropertyInfo? propertyInfo) 212private static bool TryGetMethod<T, TReturn>([NotNullWhen(true)] Type? type, string methodName, [NotNullWhen(true)] out MethodInfo? methodInfo)
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
29protected abstract bool TryGetOptionValue(string optionKeyPrefix, string? optionKeySuffix, string optionName, [NotNullWhen(returnValue: true)] out string? valueString);
src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
31private static bool TryGetSyntaxTreeForOption(ISymbol symbol, [NotNullWhen(returnValue: true)] out SyntaxTree? tree)
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
267private bool TryGetFirstWildcardMatch(ISymbol symbol, [NotNullWhen(true)] out string? firstMatchName, [MaybeNullWhen(false)] out TValue firstMatchValue)
src\RoslynAnalyzers\Utilities\Compiler\Options\SyntaxTreeCategorizedAnalyzerConfigOptions.cs (1)
65protected override bool TryGetOptionValue(string optionKeyPrefix, string? optionKeySuffix, string optionName, [NotNullWhen(returnValue: true)] out string? valueString)
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (3)
94[NotNullWhen(returnValue: true)] out INamedTypeSymbol? namedTypeSymbol) 106[NotNullWhen(returnValue: true)] out INamedTypeSymbol? namedTypeSymbol) 203internal bool IsTaskOfType([NotNullWhen(returnValue: true)] ITypeSymbol? typeSymbol, Func<ITypeSymbol, bool> typeArgumentPredicate)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (4)
17public static bool TryParseStringEditorConfigCodeStyleOption(string arg, CodeStyleOption2<string> defaultValue, [NotNullWhen(true)] out CodeStyleOption2<string>? option) 53string arg, [NotNullWhen(true)] out string? value) 64string arg, NotificationOption2 defaultNotification, [NotNullWhen(true)] out string? value, [NotNullWhen(true)] out NotificationOption2 notification)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (5)
23bool TryGetRoot(TIntervalTree tree, [NotNullWhen(true)] out TNode? root); 24bool TryGetLeftNode(TIntervalTree tree, TNode node, [NotNullWhen(true)] out TNode? leftNode); 25bool TryGetRightNode(TIntervalTree tree, TNode node, [NotNullWhen(true)] out TNode? rightNode); 115[NotNullWhen(true)] out TNode? right) where TIntrospector : struct, IIntervalIntrospector<T> 143[NotNullWhen(true)] out TNode? left) where TIntrospector : struct, IIntervalIntrospector<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (3)
158public bool TryGetRoot(MutableIntervalTree<T> tree, [NotNullWhen(true)] out Node? root) 164public bool TryGetLeftNode(MutableIntervalTree<T> tree, Node node, [NotNullWhen(true)] out Node? leftNode) 170public 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\ListExtensions.cs (1)
87public 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)
259public static bool IsInLeftOfDeconstructionAssignment(this IOperation operation, [NotNullWhen(true)] out IDeconstructionAssignmentOperation? deconstructionAssignment) 357public static bool HasAnyOperationDescendant(this IOperation operationBlock, Func<IOperation, bool> predicate, [NotNullWhen(true)] out IOperation? foundOperation) 399public 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)
138protected 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)
21[NotNullWhen(true)] out NamingRule? namingRule, 48[NotNullWhen(true)] out NamingStyleOption? rule,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser_NamingStyle.cs (1)
22[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)
19public abstract bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 20public abstract bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration); 21public abstract bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter); 22public abstract bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method); 23public abstract bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction); 24public abstract bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration); 25public abstract bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement); 26public abstract bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement); 27public 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\RefactoringHelpers\AbstractRefactoringHelpers.cs (10)
25public abstract bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); 586public bool IsOnTypeHeader(SyntaxNode root, int position, bool fullHeader, [NotNullWhen(true)] out SyntaxNode? typeDeclaration) 589public bool IsOnPropertyDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? propertyDeclaration) 592public bool IsOnParameterHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? parameter) 595public bool IsOnMethodHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? method) 598public bool IsOnLocalFunctionHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localFunction) 601public bool IsOnLocalDeclarationHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? localDeclaration) 604public bool IsOnIfStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? ifStatement) 607public bool IsOnWhileStatementHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? whileStatement) 610public bool IsOnForeachHeader(SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? foreachStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\RefactoringHelpers\IRefactoringHelpers.cs (1)
23bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SemanticFacts\ISemanticFacts.cs (10)
51bool IsWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 58bool IsOnlyWrittenTo(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 59bool IsInOutContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 60bool IsInRefContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 61bool IsInInContext(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 63bool CanReplaceWithRValue(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? expression, CancellationToken cancellationToken); 72bool TryGetSpeculativeSemanticModel(SemanticModel oldSemanticModel, SyntaxNode oldNode, SyntaxNode newNode, [NotNullWhen(true)] out SemanticModel? speculativeModel); 100bool IsInsideNameOfExpression(SemanticModel semanticModel, [NotNullWhen(true)] SyntaxNode? node, CancellationToken cancellationToken); 107bool IsInExpressionTree(SemanticModel semanticModel, SyntaxNode node, [NotNullWhen(true)] INamedTypeSymbol? expressionType, CancellationToken cancellationToken); 122bool TryGetPrimaryConstructor(INamedTypeSymbol typeSymbol, [NotNullWhen(true)] out IMethodSymbol? primaryConstructor);
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 (75)
121bool IsPredefinedType([NotNullWhen(true)] SyntaxNode? node); 122bool IsPredefinedType([NotNullWhen(true)] SyntaxNode? node, PredefinedType type); 172bool IsUsingOrExternOrImport([NotNullWhen(true)] SyntaxNode? node); 173bool IsGlobalAssemblyAttribute([NotNullWhen(true)] SyntaxNode? node); 174bool IsGlobalModuleAttribute([NotNullWhen(true)] SyntaxNode? node); 175bool IsDeclaration([NotNullWhen(true)] SyntaxNode? node); 178bool IsUsingAliasDirective([NotNullWhen(true)] SyntaxNode? node); 192bool IsEntirelyWithinStringOrCharOrNumericLiteral([NotNullWhen(true)] SyntaxTree? syntaxTree, int position, CancellationToken cancellationToken); 196bool TryGetExternalSourceInfo([NotNullWhen(true)] SyntaxNode? directive, out ExternalSourceInfo info); 198bool IsDeclarationExpression([NotNullWhen(true)] SyntaxNode? node); 200bool IsConversionExpression([NotNullWhen(true)] SyntaxNode? node); 201bool IsCastExpression([NotNullWhen(true)] SyntaxNode? node); 203bool IsExpressionOfForeach([NotNullWhen(true)] SyntaxNode? node); 209bool IsVerbatimInterpolatedStringExpression([NotNullWhen(true)] SyntaxNode? node); 212bool IsLeftSideOfAssignment([NotNullWhen(true)] SyntaxNode? node); 214bool IsAnyAssignmentStatement([NotNullWhen(true)] SyntaxNode? statement); 215bool IsSimpleAssignmentStatement([NotNullWhen(true)] SyntaxNode? statement); 220bool IsLeftSideOfAnyAssignment([NotNullWhen(true)] SyntaxNode? node); 222bool IsLeftSideOfCompoundAssignment([NotNullWhen(true)] SyntaxNode? node); 225bool IsInferredAnonymousObjectMemberDeclarator([NotNullWhen(true)] SyntaxNode? node); 226bool IsOperandOfIncrementExpression([NotNullWhen(true)] SyntaxNode? node); 227bool IsOperandOfIncrementOrDecrementExpression([NotNullWhen(true)] SyntaxNode? node); 229bool IsLeftSideOfDot([NotNullWhen(true)] SyntaxNode? node); 246bool IsLeftSideOfExplicitInterfaceSpecifier([NotNullWhen(true)] SyntaxNode? node); 248bool IsNameOfSimpleMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 249bool IsNameOfAnyMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 250bool IsNameOfMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node); 283bool IsPointerMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 285bool IsNamedArgument([NotNullWhen(true)] SyntaxNode? node); 286bool IsNameOfNamedArgument([NotNullWhen(true)] SyntaxNode? node); 288bool IsParameterList([NotNullWhen(true)] SyntaxNode? node); 298bool IsElementBindingExpression([NotNullWhen(true)] SyntaxNode? node); 299bool IsMemberBindingExpression([NotNullWhen(true)] SyntaxNode? node); 300bool IsPostfixUnaryExpression([NotNullWhen(true)] SyntaxNode? node); 311bool IsSimpleArgument([NotNullWhen(true)] SyntaxNode? node); 312bool IsArgument([NotNullWhen(true)] SyntaxNode? node); 313bool IsAttributeArgument([NotNullWhen(true)] SyntaxNode? node); 327bool IsUsingDirectiveName([NotNullWhen(true)] SyntaxNode? node); 333bool IsAttributeNamedArgumentIdentifier([NotNullWhen(true)] SyntaxNode? node); 334bool IsMemberInitializerNamedAssignmentIdentifier([NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? initializedInstance); 335bool IsAnyInitializerExpression([NotNullWhen(true)] SyntaxNode? node, [NotNullWhen(true)] out SyntaxNode? creationExpression); 337bool IsDirective([NotNullWhen(true)] SyntaxNode? node); 338bool IsStatement([NotNullWhen(true)] SyntaxNode? node); 339bool IsExecutableStatement([NotNullWhen(true)] SyntaxNode? node); 340bool IsGlobalStatement([NotNullWhen(true)] SyntaxNode? node); 343bool IsDeconstructionAssignment([NotNullWhen(true)] SyntaxNode? node); 344bool IsDeconstructionForEachStatement([NotNullWhen(true)] SyntaxNode? node); 359bool IsMethodBody([NotNullWhen(true)] SyntaxNode? node); 369bool IsElementAccessExpression([NotNullWhen(true)] SyntaxNode? node); 390bool IsInNamespaceOrTypeContext([NotNullWhen(true)] SyntaxNode? node); 392bool IsBaseTypeList([NotNullWhen(true)] SyntaxNode? node); 394bool IsInConstantContext([NotNullWhen(true)] SyntaxNode? node); 396bool IsMethodLevelMember([NotNullWhen(true)] SyntaxNode? node); 397bool IsTopLevelNodeWithMembers([NotNullWhen(true)] SyntaxNode? node); 460bool IsNameOfSubpattern([NotNullWhen(true)] SyntaxNode? node); 463bool IsAnyPattern([NotNullWhen(true)] SyntaxNode? node); 464bool IsBinaryPattern([NotNullWhen(true)] SyntaxNode? node); 465bool IsUnaryPattern([NotNullWhen(true)] SyntaxNode? node); 491bool IsParameterNameXmlElementSyntax([NotNullWhen(true)] SyntaxNode? node); 499bool IsAnonymousFunctionExpression([NotNullWhen(true)] SyntaxNode? node); 500bool IsBaseNamespaceDeclaration([NotNullWhen(true)] SyntaxNode? node); 501bool IsBinaryExpression([NotNullWhen(true)] SyntaxNode? node); 502bool IsLiteralExpression([NotNullWhen(true)] SyntaxNode? node); 503bool IsMemberAccessExpression([NotNullWhen(true)] SyntaxNode? node); 504bool IsMethodDeclaration([NotNullWhen(true)] SyntaxNode? node); 505bool IsSimpleName([NotNullWhen(true)] SyntaxNode? node); 506bool IsAnyName([NotNullWhen(true)] SyntaxNode? node); 507bool IsAnyType([NotNullWhen(true)] SyntaxNode? node); 509bool IsNamedMemberInitializer([NotNullWhen(true)] SyntaxNode? node); 510bool IsElementAccessInitializer([NotNullWhen(true)] SyntaxNode? node); 512bool IsObjectMemberInitializer([NotNullWhen(true)] SyntaxNode? node); 513bool IsObjectCollectionInitializer([NotNullWhen(true)] SyntaxNode? node); 561bool 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)
116[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)
26public 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\Compiler\Extensions\Symbols\IMethodSymbolExtensions.cs (1)
44public static bool HasEventHandlerSignature(this IMethodSymbol method, [NotNullWhen(returnValue: true)] INamedTypeSymbol? eventArgsType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (2)
56public static bool IsContainedWithin([NotNullWhen(returnValue: true)] this INamedTypeSymbol? symbol, INamedTypeSymbol outer) 672public static bool IsCollectionBuilderAttribute([NotNullWhen(true)] this INamedTypeSymbol? type)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (49)
107bool TryFindLooseMatch(ISymbol symbol, INamedTypeSymbol baseType, [NotNullWhen(true)] out ISymbol? looseMatch) 177public static bool IsOverridable([NotNullWhen(true)] this ISymbol? symbol) 184public static bool IsImplementableMember([NotNullWhen(true)] this ISymbol? symbol) 224public static bool IsErrorType([NotNullWhen(true)] this ISymbol? symbol) 227public static bool IsModuleType([NotNullWhen(true)] this ISymbol? symbol) 230public static bool IsInterfaceType([NotNullWhen(true)] this ISymbol? symbol) 233public static bool IsArrayType([NotNullWhen(true)] this ISymbol? symbol) 236public static bool IsTupleType([NotNullWhen(true)] this ISymbol? symbol) 239public static bool IsAnonymousFunction([NotNullWhen(true)] this ISymbol? symbol) 242public static bool IsKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind) 245public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind) 248public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2) 254public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, SymbolKind kind1, SymbolKind kind2, SymbolKind kind3) 260public static bool MatchesKind([NotNullWhen(true)] this ISymbol? symbol, params SymbolKind[] kinds) 266public static bool IsReducedExtension([NotNullWhen(true)] this ISymbol? symbol) 269public static bool IsEnumMember([NotNullWhen(true)] this ISymbol? symbol) 275public static bool IsLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 278public static bool IsAnonymousOrLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 281public static bool IsModuleMember([NotNullWhen(true)] this ISymbol? symbol) 284public static bool IsConstructor([NotNullWhen(true)] this ISymbol? symbol) 287public static bool IsStaticConstructor([NotNullWhen(true)] this ISymbol? symbol) 290public static bool IsDestructor([NotNullWhen(true)] this ISymbol? symbol) 293public static bool IsUserDefinedOperator([NotNullWhen(true)] this ISymbol? symbol) 296public static bool IsConversion([NotNullWhen(true)] this ISymbol? symbol) 299public static bool IsOrdinaryMethod([NotNullWhen(true)] this ISymbol? symbol) 302public static bool IsOrdinaryMethodOrLocalFunction([NotNullWhen(true)] this ISymbol? symbol) 305public static bool IsDelegateType([NotNullWhen(true)] this ISymbol? symbol) 308public static bool IsAnonymousType([NotNullWhen(true)] this ISymbol? symbol) 311public static bool IsNormalAnonymousType([NotNullWhen(true)] this ISymbol? symbol) 314public static bool IsAnonymousDelegateType([NotNullWhen(true)] this ISymbol? symbol) 317public static bool IsAnonymousTypeProperty([NotNullWhen(true)] this ISymbol? symbol) 320public static bool IsTupleField([NotNullWhen(true)] this ISymbol? symbol) 323public static bool IsIndexer([NotNullWhen(true)] this ISymbol? symbol) 326public static bool IsWriteableFieldOrProperty([NotNullWhen(true)] this ISymbol? symbol) 334public static bool IsRequired([NotNullWhen(true)] this ISymbol? symbol) 401public static bool IsFunctionValue([NotNullWhen(true)] this ISymbol? symbol) 404public static bool IsThisParameter([NotNullWhen(true)] this ISymbol? symbol) 418public static bool IsParams([NotNullWhen(true)] this ISymbol? symbol) 473public static bool IsAttribute([NotNullWhen(true)] this ISymbol? symbol) 482public static bool RequiresUnsafeModifier([NotNullWhen(true)] this ISymbol? member) 532public static bool IsStaticType([NotNullWhen(true)] this ISymbol? symbol) 536[NotNullWhen(true)] this ISymbol? symbol, ISymbol withinType, IAssemblySymbol withinAssembly, CancellationToken cancellationToken) 606public static bool IsAccessor([NotNullWhen(true)] this ISymbol? symbol) 609public static bool IsPropertyAccessor([NotNullWhen(true)] this ISymbol? symbol) 612public static bool IsEventAccessor([NotNullWhen(true)] this ISymbol? symbol) 637public static bool IsAwaitableNonDynamic([NotNullWhen(true)] this ISymbol? symbol, SemanticModel semanticModel, int position) 776public static bool IsKind<TSymbol>(this ISymbol symbol, SymbolKind kind, [NotNullWhen(true)] out TSymbol? result) where TSymbol : class, ISymbol 809public static bool HasAttribute([NotNullWhen(true)] this ISymbol? symbol, [NotNullWhen(true)] INamedTypeSymbol? attributeClass)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (29)
26public static bool IsIntegralType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 29public static bool IsSignedIntegralType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 32public static bool CanAddNullCheck([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 51public static bool IsAbstractClass([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 54public static bool IsSystemVoid([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 57public static bool IsNullable([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 60public static bool IsNonNullableValueType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 64[NotNullWhen(true)] this ITypeSymbol? symbol, 65[NotNullWhen(true)] out ITypeSymbol? underlyingType) 77public static bool IsModuleType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 80public static bool IsInterfaceType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 83public static bool IsDelegateType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 86public static bool IsFunctionPointerType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 89public static bool IsStructType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 92public static bool IsAnonymousType([NotNullWhen(returnValue: true)] this INamedTypeSymbol? symbol) 243public static bool IsFormattableStringOrIFormattable([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 280public static bool IsNumericType([NotNullWhen(returnValue: true)] this ITypeSymbol? type) 309public static bool ContainsAnonymousType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 368public static bool IsSpecialType([NotNullWhen(returnValue: true)] this ITypeSymbol? symbol) 592public static bool IsOrDerivesFromExceptionType([NotNullWhen(returnValue: true)] this ITypeSymbol? type, Compilation compilation) 625public static bool IsEnumType([NotNullWhen(true)] this ITypeSymbol? type) 628public static bool IsEnumType([NotNullWhen(true)] this ITypeSymbol? type, [NotNullWhen(true)] out INamedTypeSymbol? enumType) 719public static bool IsDisposable([NotNullWhen(returnValue: true)] this ITypeSymbol? type, [NotNullWhen(returnValue: true)] ITypeSymbol? iDisposableType) 738public static bool IsSpanOrReadOnlySpan([NotNullWhen(true)] this ITypeSymbol? type) 741public static bool IsSpan([NotNullWhen(true)] this ITypeSymbol? type) 749public static bool IsReadOnlySpan([NotNullWhen(true)] this ISymbol? symbol) 757public static bool IsInlineArray([NotNullWhen(true)] this ITypeSymbol? type)
xunit.assert (1)
Sdk\AssertHelper.cs (1)
314 [NotNullWhen(true)] out object? converted)