Title: Error accessing private members of parent class · Issue #2152 · MessagePack-CSharp/MessagePack-CSharp · GitHub
Open Graph Title: Error accessing private members of parent class · Issue #2152 · MessagePack-CSharp/MessagePack-CSharp
X Title: Error accessing private members of parent class · Issue #2152 · MessagePack-CSharp/MessagePack-CSharp
Description: Bug description If the parent class has private members, then when serializing the child class I get the exeption "to access field 'xxx' failed". This happens in two cases: The parent and child classes are in different assemblies. The ch...
Open Graph Description: Bug description If the parent class has private members, then when serializing the child class I get the exeption "to access field 'xxx' failed". This happens in two cases: The parent and child cla...
X Description: Bug description If the parent class has private members, then when serializing the child class I get the exeption "to access field 'xxx' failed". This happens in two cases: The pa...
Opengraph URL: https://github.com/MessagePack-CSharp/MessagePack-CSharp/issues/2152
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error accessing private members of parent class","articleBody":"#### Bug description\n\nIf the parent class has private members, then when serializing the child class I get the exeption \"to access field 'xxx' failed\".\n\nThis happens in two cases:\n\n1. The parent and child classes are in different assemblies.\n2. The child class has no members. \n 2.1 If there are two child classes. One with fields and the other without. Then it matters in what order I try to serialize them. If I serialize the class with fields first, then the class without fields will also be successfully serialized. But if I serialize the class without fields first, then there will be an error.\n\n- Version used: 3,1,3\n- Runtime: 8,0\n\n#### Additional context\n\nhttps://github.com/LavrinenkoRuslan/TestMessagePack\n","author":{"url":"https://github.com/LavrinenkoRuslan","@type":"Person","name":"LavrinenkoRuslan"},"datePublished":"2025-02-07T14:49:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2152/MessagePack-CSharp/issues/2152"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cce632f8-fae3-c881-6762-dd421d71b2ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E56:327072:63C5D2:84CAF2:6A4C3C0C |
| html-safe-nonce | e579caf50f8fca359f899dfdb944d8e3ab9ce62887c7b559578ae47f044c6abd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTU2OjMyNzA3Mjo2M0M1RDI6ODRDQUYyOjZBNEMzQzBDIiwidmlzaXRvcl9pZCI6IjI2NTAwMzQ5OTc0MTAwMjc2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cb053625f8efbba4ff4d816fa14854d5789bc57ce1fcb5d1fae4d48f8b5604c3 |
| hovercard-subject-tag | issue:2838353544 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/MessagePack-CSharp/MessagePack-CSharp/2152/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e6a98b4dce5fe8257bb127280f1f7ea59fc7313a6d2716394bd025386e7f1cf7/MessagePack-CSharp/MessagePack-CSharp/issues/2152 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e6a98b4dce5fe8257bb127280f1f7ea59fc7313a6d2716394bd025386e7f1cf7/MessagePack-CSharp/MessagePack-CSharp/issues/2152 |
| og:image:alt | Bug description If the parent class has private members, then when serializing the child class I get the exeption "to access field 'xxx' failed". This happens in two cases: The parent and child cla... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LavrinenkoRuslan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| turbo-cache-control | no-preview |
| go-import | github.com/MessagePack-CSharp/MessagePack-CSharp git https://github.com/MessagePack-CSharp/MessagePack-CSharp.git |
| octolytics-dimension-user_id | 138041803 |
| octolytics-dimension-user_login | MessagePack-CSharp |
| octolytics-dimension-repository_id | 81770291 |
| octolytics-dimension-repository_nwo | MessagePack-CSharp/MessagePack-CSharp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81770291 |
| octolytics-dimension-repository_network_root_nwo | MessagePack-CSharp/MessagePack-CSharp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d11deab54ce15bac57bda991cc63805976812c11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width