1 write to Options
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
301Options = options;
34 references to Options
System.Text.Json (34)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
387else if (propertyInfo.Options.PropertyNamingPolicy != null) 389name = propertyInfo.Options.PropertyNamingPolicy.ConvertName(memberInfo.Name);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (2)
210else if (propertyInfo.Options.PropertyNamingPolicy == null) 216name = propertyInfo.Options.PropertyNamingPolicy.ConvertName(declaredPropertyName);
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (1)
44Options = matchingProperty.Options;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (20)
343_jsonTypeInfo ??= Options.GetTypeInfoInternal(PropertyType); 391EscapedNameSection = JsonHelpers.GetEscapedPropertyNameSection(NameAsUtf8Bytes, Options.Encoder); 403if (Options.IgnoreNullValues) 406Debug.Assert(Options.DefaultIgnoreCondition == JsonIgnoreCondition.Never); 413else if (Options.DefaultIgnoreCondition == JsonIgnoreCondition.WhenWritingNull) 420else if (Options.DefaultIgnoreCondition == JsonIgnoreCondition.WhenWritingDefault) 484if (!EffectiveNumberHandling.HasValue && Options.NumberHandling != JsonNumberHandling.Strict) 486EffectiveNumberHandling = Options.NumberHandling; 505if (!handling.HasValue && Options.NumberHandling != JsonNumberHandling.Strict) 507handling = Options.NumberHandling; 533: Options.PreferredObjectCreationHandling); 584if (Options.ReferenceHandlingStrategy != ReferenceHandlingStrategy.None) 677MemberTypes.Property => Options.IgnoreReadOnlyProperties, 678MemberTypes.Field => Options.IgnoreReadOnlyFields, 784object value = converter.Read(ref reader, JsonTypeInfo.ObjectType, Options)!; 791JsonElement value = converter.Read(ref reader, typeof(JsonElement), Options); 798EffectiveConverter.ReadElementAndSetProperty(propValue, state.Current.JsonPropertyNameAsString!, ref reader, Options, ref state); 810?? Options.GetTypeInfoInternal(typeof(TValue)); 831JsonConverter<JsonElement> converter = (JsonConverter<JsonElement>)Options.GetConverterInternal(typeof(JsonElement)); 832if (!converter.TryRead(ref reader, typeof(JsonElement), Options, ref state, out JsonElement jsonElement, out _))
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (9)
139Options.ExpandConverterFactory(CustomConverter, PropertyType) // Expand any property-level custom converters. 168Options.ReferenceHandlingStrategy == ReferenceHandlingStrategy.IgnoreCycles && 208EffectiveConverter.Write(writer, value, Options); 229return EffectiveConverter.TryWrite(writer, value, Options, ref state); 251success = EffectiveConverter.TryWriteDataExtensionProperty(writer, value, Options, ref state); 294T? fastValue = EffectiveConverter.Read(ref reader, PropertyType, Options); 308success = EffectiveConverter.TryRead(ref reader, PropertyType, Options, ref state, out T? value, out bool populatedValue); 353value = EffectiveConverter.Read(ref reader, PropertyType, Options); 358success = EffectiveConverter.TryRead(ref reader, PropertyType, Options, ref state, out T? typedValue, out _);