12 references to JsonSerializerOptionsTypeRef
System.Text.Json.SourceGeneration (12)
JsonSourceGenerator.Emitter.cs (12)
603
writer.WriteLine($"private static {JsonPropertyInfoTypeRef}[] {propInitMethodName}({
JsonSerializerOptionsTypeRef
} {OptionsLocalVariableName})");
1088
private {{typeInfoFQN}} {{CreateTypeInfoMethodName(typeMetadata)}}({{
JsonSerializerOptionsTypeRef
}} {{OptionsLocalVariableName}})
1137
/// The default <see cref="{{JsonSerializerContextTypeRef}}"/> associated with a default <see cref="{{
JsonSerializerOptionsTypeRef
}}"/> instance.
1139
public static {{contextTypeRef}} Default { get; } = new {{contextTypeRef}}(new {{
JsonSerializerOptionsTypeRef
}}({{DefaultOptionsStaticVarName}}));
1144
protected override {{
JsonSerializerOptionsTypeRef
}}? GeneratedSerializerOptions { get; } = {{DefaultOptionsStaticVarName}};
1152
public {{contextTypeName}}({{
JsonSerializerOptionsTypeRef
}} {{OptionsLocalVariableName}}) : base({{OptionsLocalVariableName}})
1166
const string DefaultOptionsFieldDecl = $"private readonly static {
JsonSerializerOptionsTypeRef
} {DefaultOptionsStaticVarName}";
1312
private static bool {{TryGetTypeInfoForRuntimeCustomConverterMethodName}}<{{TypeParameter}}>({{
JsonSerializerOptionsTypeRef
}} options, out {{JsonTypeInfoTypeRef}}<{{TypeParameter}}> jsonTypeInfo)
1325
private static {{JsonConverterTypeRef}}? GetRuntimeConverterForType({{TypeTypeRef}} type, {{
JsonSerializerOptionsTypeRef
}} options)
1339
private static {{JsonConverterTypeRef}} {{ExpandConverterMethodName}}({{TypeTypeRef}} type, {{JsonConverterTypeRef}} converter, {{
JsonSerializerOptionsTypeRef
}} options, bool validateCanConvert = true)
1363
private static {{JsonConverterTypeRef}}<{{TypeParameter}}?> {{GetConverterForNullablePropertyMethodName}}<{{TypeParameter}}>({{JsonConverterTypeRef}} converter, {{
JsonSerializerOptionsTypeRef
}} options)
1396
writer.WriteLine($"{JsonTypeInfoTypeRef}? {JsonTypeInfoResolverTypeRef}.GetTypeInfo({TypeTypeRef} type, {
JsonSerializerOptionsTypeRef
} {OptionsLocalVariableName})");