7 references to DeclaringType
System.Text.Json (7)
System\Text\Json\Serialization\JsonTypeClassifierContext.cs (4)
67
/// Gets the union cases of <see cref="
DeclaringType
"/>.
70
/// Non-empty when <see cref="
DeclaringType
"/> is configured as a union type. The
77
/// Gets the derived types of <see cref="
DeclaringType
"/>.
80
/// 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 (2)
73
ThrowHelper.ThrowInvalidOperationException_UnionTypeStructuralClassifierOnlyForUnions(context.
DeclaringType
);
78
ThrowHelper.ThrowNotSupportedException_UnionTypeStructuralClassifierPreserveReferencesNotSupported(context.
DeclaringType
);