Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LookupProperty()

static JsonPropertyInfo System.Text.Json.JsonSerializer.LookupProperty ( object obj,
ReadOnlySpan< byte > unescapedPropertyName,
ref ReadStack state,
JsonSerializerOptions options,
out bool useExtensionProperty,
bool createExtensionProperty = true )
inlinestaticpackage

Definition at line 691 of file JsonSerializer.cs.

692 {
693 useExtensionProperty = false;
694 byte[] utf8PropertyName;
695 JsonPropertyInfo jsonPropertyInfo = state.Current.JsonTypeInfo.GetProperty(unescapedPropertyName, ref state.Current, out utf8PropertyName);
696 state.Current.PropertyIndex++;
699 {
700 JsonPropertyInfo dataExtensionProperty = state.Current.JsonTypeInfo.DataExtensionProperty;
701 if (dataExtensionProperty != null && dataExtensionProperty.HasGetter && dataExtensionProperty.HasSetter)
702 {
705 {
707 }
710 }
711 }
714 return jsonPropertyInfo;
715 }
static void CreateDataExtensionProperty(object obj, JsonPropertyInfo jsonPropertyInfo, JsonSerializerOptions options)

References System.Text.Json.JsonSerializer.CreateDataExtensionProperty(), System.Text.Json.Dictionary, System.obj, System.options, System.Text.Json.Serialization.Metadata.JsonPropertyInfo< T >.s_missingProperty, System.state, and System.Text.Json.JsonHelpers.Utf8GetString().

Referenced by System.Text.Json.Serialization.Converters.ObjectDefaultConverter< T >.OnTryRead(), System.Text.Json.Serialization.Converters.ObjectWithParameterizedConstructorConverter< T >.ReadConstructorArguments(), and System.Text.Json.Serialization.Converters.ObjectWithParameterizedConstructorConverter< T >.ReadConstructorArgumentsWithContinuation().