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)
83public sealed override bool CanClassify(JsonTypeClassifierContext context) => context.DeclaringType == typeof(T);
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (2)
73ThrowHelper.ThrowInvalidOperationException_UnionTypeStructuralClassifierOnlyForUnions(context.DeclaringType); 78ThrowHelper.ThrowNotSupportedException_UnionTypeStructuralClassifierPreserveReferencesNotSupported(context.DeclaringType);