156 references to Deserialize
Aspire.Dashboard (1)
Model\BrowserStorage\LocalBrowserStorage.cs (1)
38return new StorageResult<T>(true, JsonSerializer.Deserialize<T>(json, s_options));
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\ProjectInfo.cs (1)
60JsonSerializer.Deserialize<Dictionary<string, ProjectInfo>>(json)!;
Aspire.Hosting (4)
Dcp\ApplicationExecutor.cs (1)
468var serviceProducerAnnotations = JsonSerializer.Deserialize<ServiceProducerAnnotation[]>(servicesProducedAnnotationJson);
Dcp\DcpDependencyCheck.cs (1)
99var dcpInfo = JsonSerializer.Deserialize<DcpInfo>(output);
Dcp\Model\ModelCommon.cs (2)
81list = JsonSerializer.Deserialize<List<TValue>>(annotationValue); 98values = JsonSerializer.Deserialize<List<TValue>>(annotationVal) ?? new();
Aspire.Hosting.Tests (1)
Dcp\TestKubernetesService.cs (1)
51var clone = JsonSerializer.Deserialize<T>(serialized);
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\ProjectInfo.cs (1)
60JsonSerializer.Deserialize<Dictionary<string, ProjectInfo>>(json)!;
BicepSample.ApiService (2)
Program.cs (2)
111entries.Add(JsonSerializer.Deserialize<Entry>((string)item!)!); 160entries.Add(JsonSerializer.Deserialize<Entry>((string)item["data"])!);
CdkSample.ApiService (1)
Program.cs (1)
74entries.Add(JsonSerializer.Deserialize<Entry>((string)item!)!);
Microsoft.AspNetCore.Authentication.Core.Test (2)
AuthenticationPropertiesTests.cs (2)
328var deserialized = JsonSerializer.Deserialize<AuthenticationProperties>(json); 352var deserialized = JsonSerializer.Deserialize<AuthenticationProperties>(json);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
UserJwtsTests.cs (2)
75var appSettings = JsonSerializer.Deserialize<JsonObject>(File.ReadAllText(appsettings)); 78appSettings = JsonSerializer.Deserialize<JsonObject>(File.ReadAllText(appsettings));
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\DefaultRazorComponentsServiceOptionsConfiguration.cs (1)
57var initializers = JsonSerializer.Deserialize<string[]>(options.JavaScriptInitializers);
Microsoft.AspNetCore.Components.Endpoints.Tests (35)
EndpointHtmlRendererTest.cs (35)
64var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 88var preambleMarker = JsonSerializer.Deserialize<ComponentMarker>(preamble, ServerComponentSerializationSettings.JsonSerializationOptions); 98var epilogueMarker = JsonSerializer.Deserialize<ComponentMarker>(epilogue, ServerComponentSerializationSettings.JsonSerializationOptions); 130var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 167var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 203var preambleMarker = JsonSerializer.Deserialize<ComponentMarker>(preamble, ServerComponentSerializationSettings.JsonSerializationOptions); 222var epilogueMarker = JsonSerializer.Deserialize<ComponentMarker>(epilogue, ServerComponentSerializationSettings.JsonSerializationOptions); 252var preambleMarker = JsonSerializer.Deserialize<ComponentMarker>(preamble, ServerComponentSerializationSettings.JsonSerializationOptions); 270var epilogueMarker = JsonSerializer.Deserialize<ComponentMarker>(epilogue, ServerComponentSerializationSettings.JsonSerializationOptions); 310var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 317var serverComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 343var preambleMarker = JsonSerializer.Deserialize<ComponentMarker>(preamble, ServerComponentSerializationSettings.JsonSerializationOptions); 350var serverComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 361var epilogueMarker = JsonSerializer.Deserialize<ComponentMarker>(epilogue, ServerComponentSerializationSettings.JsonSerializationOptions); 408var preambleMarker = JsonSerializer.Deserialize<ComponentMarker>(preamble, ServerComponentSerializationSettings.JsonSerializationOptions); 413var firstServerComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedFirstServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 419var markerMarker = JsonSerializer.Deserialize<ComponentMarker>(marker, ServerComponentSerializationSettings.JsonSerializationOptions); 424var secondServerComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedSecondServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 461var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 468var serverComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 500var marker = JsonSerializer.Deserialize<ComponentMarker>(match.Groups[1].Value, ServerComponentSerializationSettings.JsonSerializationOptions); 507var serverComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 540var preambleMarker = JsonSerializer.Deserialize<ComponentMarker>(preamble, ServerComponentSerializationSettings.JsonSerializationOptions); 547var serverComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 567var epilogueMarker = JsonSerializer.Deserialize<ComponentMarker>(epilogue, ServerComponentSerializationSettings.JsonSerializationOptions); 591var preambleMarker = JsonSerializer.Deserialize<ComponentMarker>(preamble, ServerComponentSerializationSettings.JsonSerializationOptions); 598var serverComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 618var epilogueMarker = JsonSerializer.Deserialize<ComponentMarker>(epilogue, ServerComponentSerializationSettings.JsonSerializationOptions); 1074var marker = JsonSerializer.Deserialize<ComponentMarker>(markerText, ServerComponentSerializationSettings.JsonSerializationOptions); 1081var serverComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 1103var marker = JsonSerializer.Deserialize<ComponentMarker>(markerText, ServerComponentSerializationSettings.JsonSerializationOptions); 1110var serverComponent = JsonSerializer.Deserialize<ServerComponent>(unprotectedServerComponent, ServerComponentSerializationSettings.JsonSerializationOptions); 1131var marker = JsonSerializer.Deserialize<ComponentMarker>(markerText, ServerComponentSerializationSettings.JsonSerializationOptions); 1144var marker = JsonSerializer.Deserialize<ComponentMarker>(markerText, ServerComponentSerializationSettings.JsonSerializationOptions); 1173var preambleMarker = JsonSerializer.Deserialize<ComponentMarker>(preamble, ServerComponentSerializationSettings.JsonSerializationOptions);
Microsoft.AspNetCore.Components.Server (4)
Circuits\ServerComponentDeserializer.cs (3)
96var markers = JsonSerializer.Deserialize<IEnumerable<ComponentMarker>>(serializedComponentRecords, ServerComponentSerializationSettings.JsonSerializationOptions); 259result = JsonSerializer.Deserialize<ServerComponent>( 299result = JsonSerializer.Deserialize<RootComponentOperationBatch>(
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (1)
136return JsonSerializer.Deserialize<TValue>(json, options: JsonSerializerOptionsProvider.Options)!;
Microsoft.AspNetCore.Components.Tests (1)
BindConverterTest.cs (1)
404return JsonSerializer.Deserialize<Person>(text);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
TargetPickerUi.cs (1)
425return JsonSerializer.Deserialize<BrowserTab[]>(jsonResponse, JsonOptions)!;
Microsoft.AspNetCore.Components.WebAssembly.Tests (2)
JSObjectReferenceJsonConverterTest.cs (2)
28var deserialized = (JSObjectReference)JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)!; 42var deserialized = (JSInProcessObjectReference)JsonSerializer.Deserialize<IJSInProcessObjectReference>(json, JsonSerializerOptions)!;
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ConverterTests\JsonConverterReadTests.cs (2)
654var objectNew = JsonSerializer.Deserialize<TValue>(value, jsonSerializerOptions)!; 682var ex = Assert.ThrowsAny<Exception>(() => JsonSerializer.Deserialize<TValue>(value, jsonSerializerOptions));
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
HttpValidationProblemDetailsJsonConverterTest.cs (1)
145var problemDetails = JsonSerializer.Deserialize<HttpValidationProblemDetails>(json, JsonSerializerOptions);
ProblemDetailsJsonConverterTest.cs (2)
77var problemDetails = JsonSerializer.Deserialize<ProblemDetails>(json, JsonSerializerOptions); 109var problemDetails = JsonSerializer.Deserialize<ProblemDetails>(json, serializerOptions);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
243var deserializedObject = JsonSerializer.Deserialize<T>(body, new JsonSerializerOptions()
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
243var deserializedObject = JsonSerializer.Deserialize<T>(body, new JsonSerializerOptions()
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (1)
110var problemDetails = JsonSerializer.Deserialize<ValidationProblemDetails>(json, JsonSerializerOptions);
Microsoft.AspNetCore.Mvc.FunctionalTests (8)
AsyncEnumerableTestBase.cs (1)
50var projects = JsonSerializer.Deserialize<List<Project>>(content, TestJsonSerializerOptionsProvider.Options);
BasicTests.cs (7)
437var result = JsonSerializer.Deserialize<Product>(response, TestJsonSerializerOptionsProvider.Options); 451var result = JsonSerializer.Deserialize<Product[]>(response, TestJsonSerializerOptionsProvider.Options); 470var assemblyParts = JsonSerializer.Deserialize<IList<string>>(response, TestJsonSerializerOptionsProvider.Options); 541var data = JsonSerializer.Deserialize<BindPropertyControllerData>(content, TestJsonSerializerOptionsProvider.Options); 564var data = JsonSerializer.Deserialize<BindPropertyControllerData>(content, TestJsonSerializerOptionsProvider.Options); 586var data = JsonSerializer.Deserialize<BindPropertyControllerData>(content, TestJsonSerializerOptionsProvider.Options); 656var problemDetails = JsonSerializer.Deserialize<ValidationProblemDetails>(content, TestJsonSerializerOptionsProvider.Options);
Microsoft.AspNetCore.Routing.FunctionalTests (5)
MinimalFormTests.cs (5)
67var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.Web); 127var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.Web); 288var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.Web); 335var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.Web); 495var result = JsonSerializer.Deserialize<Todo>(body, JsonSerializerOptions.Web);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Rename\CSharpInlineRenameServiceTests.cs (1)
74var expectedContext = JsonSerializer.Deserialize<ImmutableDictionary<string, ImmutableArray<(string, string)>>>(expectedContextJson, serializationOptions);
Microsoft.CodeAnalysis.ExternalAccess.Razor (2)
Cohost\RazorSemanticTokensRefreshQueueWrapper.cs (1)
33var clientCapabilities = JsonSerializer.Deserialize<VSInternalClientCapabilities>(clientCapabilitiesString) ?? new();
Testing\RazorTestLanguageServerFactory.cs (1)
91var serverCapabilities = JsonSerializer.Deserialize<VSInternalServerCapabilities>(serverCapabilitiesJson, _options);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Converters\TextDocumentSyncConverter.cs (1)
34return JsonSerializer.Deserialize<TextDocumentSyncOptions>(value)!;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
CodeLens\CSharpCodeLensTests.cs (1)
390var data = JsonSerializer.Deserialize<CodeLensResolveData>(firstCodeLens.Data!.ToString(), ProtocolConversions.LspJsonSerializerOptions);
InlayHint\CSharpInlayHintTests.cs (1)
134var data = JsonSerializer.Deserialize<InlayHintResolveData>(firstInlayHint.Data!.ToString(), ProtocolConversions.LspJsonSerializerOptions);
Microsoft.DotNet.XliffTasks (1)
Model\JsonDocument.cs (1)
26_json = JsonSerializer.Deserialize<Dictionary<string, string>>(text);
Microsoft.JSInterop (1)
JSInProcessRuntime.cs (1)
32var result = JsonSerializer.Deserialize<TValue>(resultJson, JsonSerializerOptions)!;
Microsoft.JSInterop.Tests (37)
Infrastructure\ByteArrayJsonConverterTest.cs (13)
25var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)); 38var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)); 51var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)); 64var ex = Record.Exception(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)); 76var deserialized = JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)!; 89var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)); 105var deserialized = JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)!; 121var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)); 137var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)); 153var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)); 169var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)); 188var deserialized = JsonSerializer.Deserialize<byte[]>(json, JsonSerializerOptions)!; 210var deserialized = JsonSerializer.Deserialize<byte[][]>(json, JsonSerializerOptions)!;
Infrastructure\DotNetDispatcherTest.cs (4)
91var result = JsonSerializer.Deserialize<TestDTO>(resultJson, jsRuntime.JsonSerializerOptions); 104var result = JsonSerializer.Deserialize<TestDTO>(resultJson, jsRuntime.JsonSerializerOptions); 134var resultDto1 = JsonSerializer.Deserialize<TestDTO>(root[0].GetRawText(), jsRuntime.JsonSerializerOptions); 610var result = JsonSerializer.Deserialize<SomePublicType.InvokableAsyncMethodResult>(resultJson, jsRuntime.JsonSerializerOptions);
Infrastructure\DotNetObjectReferenceJsonConverterTest.cs (7)
23var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json, JsonSerializerOptions)); 37var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json, JsonSerializerOptions)); 52var ex = Record.Exception(() => JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json, JsonSerializerOptions)); 67var ex = Record.Exception(() => JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json, JsonSerializerOptions)); 82var deserialized = JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json, JsonSerializerOptions)!; 102var deserialized = JsonSerializer.Deserialize<DotNetObjectReference<TestModel>[]>(json, JsonSerializerOptions)!; 123var deserialized = JsonSerializer.Deserialize<DotNetObjectReference<TestModel>>(json, JsonSerializerOptions)!;
Infrastructure\DotNetStreamReferenceJsonConverterTest.cs (1)
26var ex = Assert.Throws<NotSupportedException>(() => JsonSerializer.Deserialize<DotNetStreamReference>(json, JsonSerializerOptions));
Infrastructure\JSObjectReferenceJsonConverterTest.cs (5)
27var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)); 38var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)); 49var ex = Record.Exception(() => JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)); 60var ex = Record.Exception(() => JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)); 72var deserialized = (JSObjectReference)JsonSerializer.Deserialize<IJSObjectReference>(json, JsonSerializerOptions)!;
Infrastructure\JSStreamReferenceJsonConverterTest.cs (7)
27var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSStreamReference>(json, JsonSerializerOptions)); 38var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSStreamReference>(json, JsonSerializerOptions)); 49var ex = Record.Exception(() => JsonSerializer.Deserialize<IJSStreamReference>(json, JsonSerializerOptions)); 60var ex = Record.Exception(() => JsonSerializer.Deserialize<IJSStreamReference>(json, JsonSerializerOptions)); 72var ex = Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<IJSStreamReference>(json, JsonSerializerOptions)); 85var deserialized = (JSStreamReference)JsonSerializer.Deserialize<IJSStreamReference>(json, JsonSerializerOptions)!; 101var deserialized = (JSStreamReference)JsonSerializer.Deserialize<IJSStreamReference>(json, JsonSerializerOptions)!;
Microsoft.ML.AutoML (1)
Tuner\AutoZeroTuner.cs (1)
73var res = JsonSerializer.Deserialize<List<Config>>(json);
Microsoft.ML.AutoML.SourceGenerator (5)
EstimatorTypeGenerator.cs (1)
28var flags = JsonSerializer.Deserialize<Dictionary<string, bool>>(json);
SearchSpaceGenerator.cs (1)
25var flags = JsonSerializer.Deserialize<Dictionary<string, bool>>(json);
SweepableEstimatorFactoryGenerator.cs (1)
25var flags = JsonSerializer.Deserialize<Dictionary<string, bool>>(json);
SweepableEstimatorGenerator.cs (1)
24var flags = JsonSerializer.Deserialize<Dictionary<string, bool>>(json);
Utils.cs (1)
17return JsonSerializer.Deserialize<EstimatorsContract>(json);
Microsoft.ML.GenAI.LLaMA (7)
LlamaConfig.cs (5)
52Llama3_1_8B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_1_8b_content) ?? throw new ArgumentNullException(nameof(llama3_1_8b_content)); 53Llama3_1_70B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_1_70b_content) ?? throw new ArgumentNullException(nameof(llama3_1_70b_content)); 54Llama3_1_405B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_1_405b_content) ?? throw new ArgumentNullException(nameof(llama3_1_405b_content)); 55Llama3_2_1B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_2_1b_content) ?? throw new ArgumentNullException(nameof(llama3_2_1b_content)); 56Llama_3_2_3B_Instruct = JsonSerializer.Deserialize<LlamaConfig>(llama3_2_3b_content) ?? throw new ArgumentNullException(nameof(llama3_2_3b_content));
LlamaForCausalLM.cs (2)
79var modelConfig = JsonSerializer.Deserialize<LlamaConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config)); 112var modelConfig = JsonSerializer.Deserialize<LlamaConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Mistral (4)
MistralCausalLMAgent.cs (1)
149var mistralToolCalls = JsonSerializer.Deserialize<List<MistralToolCall>>(json) ?? throw new InvalidOperationException("Failed to deserialize tool calls.");
MistralConfig.cs (1)
44Mistral_7B_Instruct_v0_3 = JsonSerializer.Deserialize<MistralConfig>(mistral7BInstructContent) ?? throw new ArgumentNullException(nameof(mistral7BInstructContent));
MistralForCausalLM.cs (2)
58var modelConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config)); 86var modelConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Phi (8)
Phi2\Config.cs (1)
45var phi2Config = JsonSerializer.Deserialize<Phi2Config>(phi2ConfigContent) ?? throw new ArgumentNullException(nameof(phi2ConfigContent));
Phi2\Phi2ForCasualLM.cs (1)
59var modelConfig = JsonSerializer.Deserialize<Phi2Config>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Phi3\Config.cs (4)
50Phi3Mini4kInstruct = JsonSerializer.Deserialize<Phi3Config>(phi3Mini4kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Mini4kInstructContent)); 51Phi3Mini128kInstruct = JsonSerializer.Deserialize<Phi3Config>(phi3Mini128kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Mini128kInstructContent)); 52Phi3Medium4kInstruct = JsonSerializer.Deserialize<Phi3Config>(phi3Medium4kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Medium4kInstructContent)); 53Phi3Medium128kInstruct = JsonSerializer.Deserialize<Phi3Config>(phi3Medium128kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Medium128kInstructContent));
Phi3\Phi3ForCasualLM.cs (2)
60var modelConfig = JsonSerializer.Deserialize<Phi3Config>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config)); 88var modelConfig = JsonSerializer.Deserialize<Phi3Config>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Samples (1)
Mistral\Mistral_7B_Instruct.cs (1)
76var mistralConfig = JsonSerializer.Deserialize<MistralConfig>(File.ReadAllText(Path.Combine(weightFolder, configName))) ?? throw new ArgumentNullException(nameof(configName));
Microsoft.ML.SearchSpace (1)
Parameter.cs (1)
298return JsonSerializer.Deserialize<T>(json, _settings);
Microsoft.ML.SearchSpace.Tests (2)
ParameterTest.cs (2)
43parameter = JsonSerializer.Deserialize<Parameter>(json); 112parameter = JsonSerializer.Deserialize<Parameter>(json);
RunTests (1)
AssemblyScheduler.cs (1)
316var deserialized = JsonSerializer.Deserialize<List<string>>(File.ReadAllText(testListPath));
Templates.Blazor.Tests (1)
BlazorWasmTemplateTest.cs (1)
122var serviceWorkerAssetsManifestVersion = JsonSerializer.Deserialize<string>(serviceWorkerAssetsManifestVersionJson);