| File: _generated\44\TemplateCacheJsonSerializerContext.GetJsonTypeInfo.g.cs | Web Access |
| Project: src\sdk\src\TemplateEngine\Microsoft.TemplateEngine.Edge\Microsoft.TemplateEngine.Edge.csproj (Microsoft.TemplateEngine.Edge) |
// <auto-generated/> #nullable enable annotations #nullable disable warnings // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0612, CS0618 namespace Microsoft.TemplateEngine.Edge.Settings { internal partial class TemplateCacheJsonSerializerContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver { /// <inheritdoc/> public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) { Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); return typeInfo; } global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options) { if (type == typeof(bool)) { return Create_Boolean(options); } if (type == typeof(global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo)) { return Create_TemplateConstraintInfo(options); } if (type == typeof(global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo)) { return Create_IBaselineInfo(options); } if (type == typeof(global::Microsoft.TemplateEngine.Abstractions.ITemplateParameter)) { return Create_ITemplateParameter(options); } if (type == typeof(global::Microsoft.TemplateEngine.Abstractions.ParameterChoice)) { return Create_ParameterChoice(options); } if (type == typeof(global::Microsoft.TemplateEngine.Abstractions.Parameters.IParameterDefinitionSet)) { return Create_IParameterDefinitionSet(options); } if (type == typeof(global::Microsoft.TemplateEngine.Abstractions.PrecedenceDefinition)) { return Create_PrecedenceDefinition(options); } if (type == typeof(global::Microsoft.TemplateEngine.Abstractions.TemplateParameterPrecedence)) { return Create_TemplateParameterPrecedence(options); } if (type == typeof(global::Microsoft.TemplateEngine.Abstractions.TemplateParameterPriority)) { return Create_TemplateParameterPriority(options); } if (type == typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)) { return Create_TemplateCache(options); } if (type == typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)) { return Create_TemplateInfo(options); } if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.DateTime>)) { return Create_DictionaryStringDateTime(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo>)) { return Create_IReadOnlyDictionaryStringIBaselineInfo(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, global::Microsoft.TemplateEngine.Abstractions.ParameterChoice>)) { return Create_IReadOnlyDictionaryStringParameterChoice(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>)) { return Create_IReadOnlyDictionaryStringString(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>)) { return Create_IReadOnlyListTemplateConstraintInfo(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>)) { return Create_IReadOnlyListTemplateInfo(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::System.Guid>)) { return Create_IReadOnlyListGuid(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>)) { return Create_IReadOnlyListString(options); } if (type == typeof(global::System.DateTime)) { return Create_DateTime(options); } if (type == typeof(global::System.Guid)) { return Create_Guid(options); } if (type == typeof(int)) { return Create_Int32(options); } if (type == typeof(string)) { return Create_String(options); } return null; } } }