Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Expose SerializationInfo.UpdateValue for corefx #6486

Merged
merged 1 commit into from
Jul 27, 2016

Conversation

stephentoub
Copy link
Member

ObjectManager in corefx needs to access to SerializationInfo.UpdateValue, which is currently internal. We don't need to expose UpdateValue in a public contract (which would necessitate adding it to desktop), but by making it public we can give corefx the functionality it needs without needing to move a whole bunch more down from corefx into the runtime.

cc: @jkotas

@jkotas
Copy link
Member

jkotas commented Jul 27, 2016

LGTM

==============================================================================*/
internal void UpdateValue(String name, Object value, Type type)
public void UpdateValue(String name, Object value, Type type)
Copy link
Member

Choose a reason for hiding this comment

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

We should make this under #ifdef FEATURE_CORECLR

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok. Both model.xml and mscorlib.cs are specific to CoreCLR already such that there's no ifdef'ing needed there, right?

Copy link
Member

Choose a reason for hiding this comment

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

Right.

ObjectManager in corefx needs to access to SerializationInfo.UpdateValue, which is currently internal.  We don't need to expose UpdateValue in a public contract (which would necessitate adding it to desktop), but by making it public we can give corefx the functionality it needs without needing to move a whole bunch more down from corefx into the runtime.
@stephentoub stephentoub merged commit cfa36dd into dotnet:master Jul 27, 2016
@stephentoub stephentoub deleted the expose_updatevalue branch July 27, 2016 16:05
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…value

Expose SerializationInfo.UpdateValue for corefx

Commit migrated from dotnet/coreclr@cfa36dd
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants