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

Add support for immutable array#39493

Merged
layomia merged 9 commits intodotnet:masterfrom
layomia:immutable_array_refactor
Jul 16, 2019
Merged

Add support for immutable array#39493
layomia merged 9 commits intodotnet:masterfrom
layomia:immutable_array_refactor

Conversation

@layomia
Copy link
Copy Markdown
Contributor

@layomia layomia commented Jul 15, 2019

@layomia layomia requested a review from steveharter July 15, 2019 19:28
@layomia layomia self-assigned this Jul 15, 2019
@layomia layomia added this to the 3.0 milestone Jul 15, 2019
if (list == null)
if (list == null ||
// ImmutableArray<T> is a struct, so default value won't be null.
state.Current.JsonPropertyInfo.RuntimePropertyType.FullName.StartsWith(DefaultImmutableEnumerableConverter.ImmutableArrayGenericTypeName))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is there a better way to check for this?

@layomia layomia merged commit 2811879 into dotnet:master Jul 16, 2019
@layomia layomia deleted the immutable_array_refactor branch July 16, 2019 14:59
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Add support for ImmutableArray

* Refactor immutable materializer strategies to use creator helper

* Clean up + re-add tests

* Check for immutable array

* Correct immutable array check

* Fix whitespace


Commit migrated from dotnet/corefx@2811879
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.

Add support for ImmutableArray to JsonSerializer

2 participants