System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (47)
75/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
106/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
136/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
166/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
202/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
288/// <paramref name="value" /> has been associated with a different <see cref="JsonTypeInfo"/> instance.
291/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
340/// A <see cref="JsonTypeInfo"/> instance can be locked either if
390private readonly JsonTypeInfo _parent;
392public JsonUnionCaseInfoList(JsonTypeInfo parent, IEnumerable<JsonUnionCaseInfo>? source = null) : base(source)
458/// <c>CaseValue</c> using the <see cref="JsonTypeInfo"/> registered for that case
636internal JsonTypeInfo? ElementTypeInfo
646JsonTypeInfo? elementTypeInfo = _elementTypeInfo;
662internal JsonTypeInfo? KeyTypeInfo
672JsonTypeInfo? keyTypeInfo = _keyTypeInfo;
684private JsonTypeInfo? _elementTypeInfo;
685private JsonTypeInfo? _keyTypeInfo;
688/// Gets the <see cref="JsonSerializerOptions"/> value associated with the current <see cref="JsonTypeInfo" /> instance.
703/// As such, the value of the converter cannot be changed once a <see cref="JsonTypeInfo"/> instance has been created.
723/// Dummy <see cref="JsonPropertyInfo"/> instance corresponding to the declaring type of this <see cref="JsonTypeInfo"/>.
741/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
773/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
813/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
851/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification.
1047/// Validates that a union <see cref="JsonTypeInfo"/> has a well-formed shape after
1169/// This helper operates purely on already-resolved <see cref="JsonTypeInfo"/> /
1174private static void BuildUnionValueTypeMap(IList<JsonUnionCaseInfo> unionCases, JsonSerializerOptions options, JsonTypeInfo target)
1183JsonTypeInfo caseTypeInfo = options.GetTypeInfoInternal(caseType);
1255internal JsonTypeInfo? AncestorPolymorphicType
1272private JsonTypeInfo? _ancestorPolymorhicType;
1372/// which constrains the type of metadata that can be modified in the <see cref="JsonTypeInfo"/> instance.
1385/// Creates a blank <see cref="JsonTypeInfo"/> instance.
1389/// <returns>A blank <see cref="JsonTypeInfo"/> instance.</returns>
1393/// The returned <see cref="JsonTypeInfo"/> will be blank, with the exception of the
1400/// which constrains the type of metadata that can be modified in the <see cref="JsonTypeInfo"/> instance.
1404public static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options)
1420internal static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonConverter converter, JsonSerializerOptions options)
1422JsonTypeInfo jsonTypeInfo;
1433jsonTypeInfo = (JsonTypeInfo)jsonTypeInfoType.CreateInstanceNoWrapExceptions(
1443/// Creates a blank <see cref="JsonPropertyInfo"/> instance for the current <see cref="JsonTypeInfo"/>.
1450/// <exception cref="InvalidOperationException">The <see cref="JsonTypeInfo"/> instance has been locked for further modification.</exception>
1476if (Options.TryGetTypeInfoCached(propertyType, out JsonTypeInfo? jsonTypeInfo))
1489parameterTypes: [typeof(Type), typeof(JsonTypeInfo), typeof(JsonSerializerOptions)],
1500private protected abstract JsonPropertyInfo CreateJsonPropertyInfo(JsonTypeInfo declaringTypeInfo, Type? declaringType, JsonSerializerOptions options);
1782(propertyType.FullName == JsonObjectTypeName && ReferenceEquals(propertyType.Assembly, typeof(JsonTypeInfo).Assembly));
1816private readonly JsonTypeInfo _jsonTypeInfo;
1818public JsonPropertyInfoList(JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (7)
38JsonTypeInfo.ObjectType,
176public override JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>?
178CreateDelegate<JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>>(
201new[] { JsonTypeInfo.ObjectType },
347new[] { collectionType, JsonTypeInfo.ObjectType },
700new[] { JsonTypeInfo.ObjectType },
716new[] { JsonTypeInfo.ObjectType, memberType },