35 references to Serialize
Aspire.Hosting.Azure (1)
AzureBicepResource.cs (1)
160JsonSerializer.Serialize(context.Writer, inputValue);
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
HttpValidationProblemDetailsJsonConverterTest.cs (1)
30JsonSerializer.Serialize(writer, problemDetails, JsonSerializerOptions);
ProblemDetailsJsonConverterTest.cs (3)
181JsonSerializer.Serialize(writer, value, JsonSerializerOptions); 205JsonSerializer.Serialize(writer, value, JsonSerializerOptions); 236JsonSerializer.Serialize(writer, value, JsonSerializerOptions);
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (2)
149JsonSerializer.Serialize(writer, problemDetails, JsonSerializerOptions); 182JsonSerializer.Serialize(writer, problemDetails, options);
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
917private void SerializeObject(Utf8JsonWriter writer, object? value) => JsonSerializer.Serialize(writer, value, _payloadSerializerOptions);
Microsoft.CodeAnalysis.LanguageServer.Protocol (20)
Protocol\Converters\FormattingOptionsConverter.cs (1)
141JsonSerializer.Serialize(writer, item.Value, options);
Protocol\Converters\InitializeParamsWorkspaceFoldersConverter.cs (1)
36JsonSerializer.Serialize(writer, value, options);
Protocol\Converters\ParameterInformationConverter.cs (2)
47JsonSerializer.Serialize(writer, value.Label, options); 52JsonSerializer.Serialize(writer, value.Documentation, options);
Protocol\Converters\SumConverter.cs (1)
272JsonSerializer.Serialize(writer, sumValue, options);
Protocol\Converters\TextDocumentSyncConverter.cs (1)
47JsonSerializer.Serialize(writer, value, options);
Protocol\Extensions\Converters\VSExtensionConverter.cs (2)
34JsonSerializer.Serialize(writer, extension, options); 40JsonSerializer.Serialize(writer, (object)value!, DropConverter(options));
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (12)
45JsonSerializer.Serialize(writer, completionList.ContinueCharacters, options); 51JsonSerializer.Serialize(writer, completionList.Data, options); 57JsonSerializer.Serialize(writer, completionList.CommitCharacters, options); 90JsonSerializer.Serialize(writer, completionList.ItemDefaults, options); 116JsonSerializer.Serialize(writer, vsCompletionItem.Description, options); 156JsonSerializer.Serialize(writer, completionItem.LabelDetails, options); 169JsonSerializer.Serialize(writer, completionItem.Documentation, options); 201JsonSerializer.Serialize(writer, completionItem.TextEdit, options); 207JsonSerializer.Serialize(writer, completionItem.TextEditText, options); 213JsonSerializer.Serialize(writer, completionItem.AdditionalTextEdits, options); 231JsonSerializer.Serialize(writer, completionItem.Command, options); 237JsonSerializer.Serialize(writer, completionItem.Data, options);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultJsonSerializerFactory.cs (1)
36JsonSerializer.Serialize<T>(writer, value, JsonSerializerOptions.Default);
Microsoft.ML.SearchSpace (6)
Converter\ChoiceOptionConverter.cs (1)
43JsonSerializer.Serialize(writer, schema, options);
Converter\NumericOptionConverter.cs (1)
81JsonSerializer.Serialize(writer, schema, options);
Converter\OptionConverter.cs (3)
50JsonSerializer.Serialize(writer, ss, options); 54JsonSerializer.Serialize(writer, choiceOption, options); 58JsonSerializer.Serialize(writer, uniformNumericOption, options);
Converter\ParameterConverter.cs (1)
56JsonSerializer.Serialize(writer, value.Value, options);