Skip to content
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

Delete serialization support from the managed type system #84675

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

MichalStrehovsky
Copy link
Member

Long time ago we tried to make binary serialization sort of work with PublishAot. That code was deleted, but this was left.

It required gardening work in #84649 but we should just delete it.

Cc @dotnet/ilc-contrib

Long time ago we tried to make binary serialization sort of work with PublishAot. That code was deleted, but this was left.
@@ -147,11 +146,6 @@ private int InitializeFieldFlags(int mask)
if ((fieldAttributes & FieldAttributes.HasFieldRVA) != 0)
flags |= FieldFlags.HasRva;

#pragma warning disable SYSLIB0050 // Legacy serialization infrastructure is obsolete
if ((fieldAttributes & FieldAttributes.NotSerialized) != 0)
flags |= FieldFlags.NotSerialized;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also remove the FieldFlags.NotSerialized? It should not be used now... and we don't want to use it again.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's getting removed on line 21 in this file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right - I'm... blind. Sorry.

@MichalStrehovsky MichalStrehovsky merged commit e02954b into dotnet:main Apr 12, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants