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

Conversation

@bamarsha
Copy link
Contributor

Closes #359.

Copy link
Collaborator

@swernli swernli left a comment

Choose a reason for hiding this comment

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

The reflection you are using here to get info on the underlying generic types seems reasonable to me. I don't know of any other ways to handle these kinds of types, and I've seen this approach recommended elsewhere (and used it myself for some .NET that wraps WMI). I'd definitely let others weigh in too, though I'm of the opinion this is the way C# is meant to handle generics.

Copy link
Contributor

@bettinaheim bettinaheim left a comment

Choose a reason for hiding this comment

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

Could you please double check the perf tests? Thanks!

@bamarsha
Copy link
Contributor Author

Could you please double check the perf tests? Thanks!

This turns out to not be easy. Currently, the runtime performance tests aren't published in a format that's convenient to compare against results from main.

@bamarsha bamarsha added this to the November 2020 milestone Oct 21, 2020
@bamarsha bamarsha merged commit 73c85a8 into main Oct 29, 2020
@bamarsha bamarsha deleted the samarsha/default-values branch October 29, 2020 17:59
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.

Default values in uninitialized arrays can contain null

4 participants