Skip to content

Uses existing JSON primitive collection instead of creating a new one - #31282

Merged
ajcvickers merged 1 commit into
230711HangInThereJsonfrom
230715CaptainJsonPugwash
Jul 18, 2023
Merged

ajcvickers merged 1 commit into
230711HangInThereJsonfrom
230715CaptainJsonPugwash

Conversation

@ajcvickers

Copy link
Copy Markdown
Contributor

Part of #30677

Builds on #31272

This is the case where the CLR types contains, for example, an ObservableCollection<int>. In this case, we populate this existing collection, rather than creating a new instance.

Same still needs to be done for relational materialization of primitive collections.

Part of #30677

Builds on #31272

This is the case where the CLR types contains, for example, an `ObservableCollection<int>`. In this case, we populate this existing collection, rather than creating a new instance.

Same still needs to be done for relational materialization of primitive collections.
}
}

var listOfT = typeof(List<>).MakeGenericType(elementType);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there an issue tracking making the concrete type configurable?

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.

I don't think so.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Filed #31287

@ajcvickers
ajcvickers merged commit 455600a into 230711HangInThereJson Jul 18, 2023
@ajcvickers
ajcvickers deleted the 230715CaptainJsonPugwash branch July 18, 2023 11:25
@ajcvickers

Copy link
Copy Markdown
Contributor Author

Superseded by #31272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants