System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (37)
78/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
109/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
139/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
169/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
205/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
291/// <paramref name="value" /> has been associated with a different <see cref="JsonTypeInfo"/> instance.
294/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
334/// A <see cref="JsonTypeInfo"/> instance can be locked either if
384internal JsonTypeInfo? ElementTypeInfo
394JsonTypeInfo? elementTypeInfo = _elementTypeInfo;
410internal JsonTypeInfo? KeyTypeInfo
420JsonTypeInfo? keyTypeInfo = _keyTypeInfo;
432private JsonTypeInfo? _elementTypeInfo;
433private JsonTypeInfo? _keyTypeInfo;
436/// Gets the <see cref="JsonSerializerOptions"/> value associated with the current <see cref="JsonTypeInfo" /> instance.
451/// As such, the value of the converter cannot be changed once a <see cref="JsonTypeInfo"/> instance has been created.
471/// Dummy <see cref="JsonPropertyInfo"/> instance corresponding to the declaring type of this <see cref="JsonTypeInfo"/>.
489/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
521/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
565/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
603/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
786internal JsonTypeInfo? AncestorPolymorphicType
803private JsonTypeInfo? _ancestorPolymorhicType;
903/// which constrains the type of metadata that can be modified in the <see cref="JsonTypeInfo"/> instance.
919/// Creates a blank <see cref="JsonTypeInfo"/> instance.
923/// <returns>A blank <see cref="JsonTypeInfo"/> instance.</returns>
927/// The returned <see cref="JsonTypeInfo"/> will be blank, with the exception of the
934/// which constrains the type of metadata that can be modified in the <see cref="JsonTypeInfo"/> instance.
938public static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options)
961internal static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonConverter converter, JsonSerializerOptions options)
963JsonTypeInfo jsonTypeInfo;
974jsonTypeInfo = (JsonTypeInfo)jsonTypeInfoType.CreateInstanceNoWrapExceptions(
984/// Creates a blank <see cref="JsonPropertyInfo"/> instance for the current <see cref="JsonTypeInfo"/>.
991/// <exception cref="InvalidOperationException">The <see cref="JsonTypeInfo"/> instance has been locked for further modification.</exception>
1024if (Options.TryGetTypeInfoCached(propertyType, out JsonTypeInfo? jsonTypeInfo))
1037parameterTypes: [typeof(Type), typeof(JsonTypeInfo), typeof(JsonSerializerOptions)],
1048private protected abstract JsonPropertyInfo CreateJsonPropertyInfo(JsonTypeInfo declaringTypeInfo, Type? declaringType, JsonSerializerOptions options);
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (6)
38JsonTypeInfo.ObjectType,
110public override JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>?
112CreateDelegate<JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>>(
168new[] { collectionType, JsonTypeInfo.ObjectType },
383new[] { JsonTypeInfo.ObjectType },
391new[] { JsonTypeInfo.ObjectType, memberType },