65 references to IfNull
Microsoft.Extensions.AI.Abstractions (65)
AdditionalPropertiesDictionary{TValue}.cs (1)
208
_ = Throw.
IfNull
(items);
ChatCompletion\ChatClientExtensions.cs (12)
27
_ = Throw.
IfNull
(client);
49
_ = Throw.
IfNull
(client);
50
_ = Throw.
IfNull
(serviceType);
73
_ = Throw.
IfNull
(client);
97
_ = Throw.
IfNull
(client);
98
_ = Throw.
IfNull
(chatMessage);
117
_ = Throw.
IfNull
(client);
118
_ = Throw.
IfNull
(chatMessage);
137
_ = Throw.
IfNull
(client);
138
_ = Throw.
IfNull
(chatMessage);
157
_ = Throw.
IfNull
(client);
158
_ = Throw.
IfNull
(chatMessage);
ChatCompletion\ChatFinishReason.cs (1)
90
Throw.
IfNull
(writer).WriteStringValue(value.Value);
ChatCompletion\ChatResponse.cs (1)
35
_ = Throw.
IfNull
(message);
ChatCompletion\ChatResponseExtensions.cs (8)
28
_ = Throw.
IfNull
(list);
29
_ = Throw.
IfNull
(response);
57
_ = Throw.
IfNull
(list);
58
_ = Throw.
IfNull
(updates);
84
_ = Throw.
IfNull
(list);
85
_ = Throw.
IfNull
(updates);
107
_ = Throw.
IfNull
(updates);
135
_ = Throw.
IfNull
(updates);
ChatCompletion\ChatRole.cs (1)
100
Throw.
IfNull
(writer).WriteStringValue(value.Value);
ChatCompletion\DelegatingChatClient.cs (2)
27
InnerClient = Throw.
IfNull
(innerClient);
53
_ = Throw.
IfNull
(serviceType);
Contents\DataContent.cs (1)
57
: this(Throw.
IfNull
(uri).ToString(), mediaType)
Contents\FunctionCallContent.cs (6)
28
CallId = Throw.
IfNull
(callId);
29
Name = Throw.
IfNull
(name);
78
_ = Throw.
IfNull
(encodedArguments);
79
_ = Throw.
IfNull
(callId);
80
_ = Throw.
IfNull
(name);
81
_ = Throw.
IfNull
(argumentParser);
Contents\FunctionResultContent.cs (1)
30
CallId = Throw.
IfNull
(callId);
Contents\UriContent.cs (3)
40
: this(new Uri(Throw.
IfNull
(uri)), mediaType)
58
_uri = Throw.
IfNull
(uri);
66
set => _uri = Throw.
IfNull
(value);
Contents\UsageContent.cs (2)
30
_details = Throw.
IfNull
(details);
37
set => _details = Throw.
IfNull
(value);
Embeddings\DelegatingEmbeddingGenerator.cs (2)
30
InnerGenerator = Throw.
IfNull
(innerGenerator);
50
_ = Throw.
IfNull
(serviceType);
Embeddings\EmbeddingGeneratorExtensions.cs (8)
32
_ = Throw.
IfNull
(generator);
55
_ = Throw.
IfNull
(generator);
56
_ = Throw.
IfNull
(serviceType);
80
_ = Throw.
IfNull
(generator);
140
_ = Throw.
IfNull
(generator);
141
_ = Throw.
IfNull
(value);
185
_ = Throw.
IfNull
(generator);
186
_ = Throw.
IfNull
(values);
Embeddings\GeneratedEmbeddings.cs (1)
39
_embeddings = new List<TEmbedding>(Throw.
IfNull
(embeddings));
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (3)
52
_ = Throw.
IfNull
(options);
53
_ = Throw.
IfNull
(type);
72
_ = Throw.
IfNull
(typeInfo);
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (5)
44
_jsonTypeInfo_ElementType = Throw.
IfNull
(elementTypeProperty);
56
_jsonPropertyInfo_MemberName = Throw.
IfNull
(memberName);
71
_nullableConverter_ElementConverter_Generic = Throw.
IfNull
(genericFieldInfo);
88
_enumConverter_Options_Generic = Throw.
IfNull
(genericFieldInfo);
97
_enumConverter_NamingPolicy_Generic = Throw.
IfNull
(genericFieldInfo);
UsageDetails.cs (1)
36
_ = Throw.
IfNull
(usage);
Utilities\AIJsonUtilities.cs (5)
37
_ = Throw.
IfNull
(options);
38
_ = Throw.
IfNull
(typeDiscriminatorId);
54
_ = Throw.
IfNull
(options);
55
_ = Throw.
IfNull
(contentType);
56
_ = Throw.
IfNull
(typeDiscriminatorId);
Utilities\AIJsonUtilities.Schema.cs (1)
66
_ = Throw.
IfNull
(method);