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

Avoid empty array allocation in MethodBase.GetParameterTypes #67149

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

stephentoub
Copy link
Member

No parameters is very common. Avoid a new Type[0] array in such cases.

No parameters is very common.  Avoid a `new Type[0]` array in such cases.
@ghost
Copy link

ghost commented Mar 25, 2022

Tagging subscribers to this area: @dotnet/area-system-reflection
See info in area-owners.md if you want to be subscribed.

Issue Details

No parameters is very common. Avoid a new Type[0] array in such cases.

Author: stephentoub
Assignees: stephentoub
Labels:

area-System.Reflection

Milestone: -

@stephentoub stephentoub merged commit cc4d26d into dotnet:main Mar 25, 2022
@stephentoub stephentoub deleted the getparametertypesarray branch March 25, 2022 20:38
radekdoulik pushed a commit to radekdoulik/runtime that referenced this pull request Mar 30, 2022
…67149)

No parameters is very common.  Avoid a `new Type[0]` array in such cases.
@ghost ghost locked as resolved and limited conversation to collaborators Apr 25, 2022
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.

None yet

2 participants