-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Prevent runtime prop metadata retrieval when [JsonIgnore] is used #60024
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,16 +42,14 @@ internal static JsonPropertyInfo GetPropertyPlaceholder() | |
|
|
||
| // Create a property that is ignored at run-time. | ||
| internal static JsonPropertyInfo CreateIgnoredPropertyPlaceholder( | ||
| JsonConverter converter, | ||
| MemberInfo memberInfo, | ||
| Type memberType, | ||
| bool isVirtual, | ||
| JsonSerializerOptions options) | ||
| { | ||
| JsonPropertyInfo jsonPropertyInfo = converter.CreateJsonPropertyInfo(); | ||
| JsonPropertyInfo jsonPropertyInfo = new JsonPropertyInfo<sbyte>(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you also add a comment here explaining why
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will be sure to do so in a follow up to avoid CI reset. It will be the same as the comment on |
||
|
|
||
| jsonPropertyInfo.Options = options; | ||
| jsonPropertyInfo.ConverterBase = converter; | ||
| jsonPropertyInfo.MemberInfo = memberInfo; | ||
| jsonPropertyInfo.IsIgnored = true; | ||
| jsonPropertyInfo.DeclaredPropertyType = memberType; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.