7 instantiations of NotNullWhen
Microsoft.Extensions.AI.Abstractions (7)
AdditionalPropertiesDictionary{TValue}.cs (1)
160
public bool TryGetValue<T>(string key, [
NotNullWhen
(true)] out T? value)
ChatCompletion\ChatFinishReason.cs (1)
34
public override bool Equals([
NotNullWhen
(true)] object? obj) => obj is ChatFinishReason other && Equals(other);
ChatCompletion\ChatRole.cs (1)
76
public override bool Equals([
NotNullWhen
(true)] object? obj)
SpeechToText\SpeechToTextResponseUpdateKind.cs (1)
78
public override bool Equals([
NotNullWhen
(true)] object? obj)
src\LegacySupport\SystemIndex\Index.cs (1)
122
public override bool Equals([
NotNullWhen
(true)] object? value) => value is Index && _value == ((Index)value)._value;
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
518
public bool TryGetExistingJsonPointer(in JsonSchemaExporterContext context, [
NotNullWhen
(true)] out string? existingJsonPointer)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
351
private static bool TypeIsIntegerWithStringNumberHandling(AIJsonSchemaCreateContext ctx, JsonObject schema, [
NotNullWhen
(true)] out string? numericType)