1 write to DeclaringType
System.Text.Json (1)
System\Text\Json\Serialization\JsonTypeClassifierContext.cs (1)
43
DeclaringType
= declaringType;
8 references to DeclaringType
System.Text.Json (8)
System\Text\Json\Serialization\JsonTypeClassifierContext.cs (4)
64
/// Gets the union cases of <see cref="
DeclaringType
"/>.
67
/// Non-empty when <see cref="
DeclaringType
"/> is configured as a union type. The
74
/// Gets the derived types of <see cref="
DeclaringType
"/>.
77
/// Non-empty when <see cref="
DeclaringType
"/> is configured as a polymorphic
System\Text\Json\Serialization\JsonTypeClassifierFactory.cs (1)
83
public sealed override bool CanClassify(JsonTypeClassifierContext context) => context.
DeclaringType
== typeof(T);
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (3)
73
ThrowHelper.ThrowInvalidOperationException_UnionTypeStructuralClassifierOnlyForUnions(context.
DeclaringType
);
78
ThrowHelper.ThrowNotSupportedException_UnionTypeStructuralClassifierPreserveReferencesNotSupported(context.
DeclaringType
);
81
StructuralClassifier classifier = BuildStructuralClassifier(context.
DeclaringType
, context.UnionCases, options);