Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Special-case no attributes in GetCustomAttributeData#54405

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jkotas merged 1 commit intodotnet:mainfromstephentoub:emptycustomattrs
Jun 21, 2021

Conversation

@stephentoub
Copy link
Member

It's common to ask for attribute information on members that don't have attributes (which you only discover by asking).

usingBenchmarkDotNet.Attributes;usingBenchmarkDotNet.Running;usingSystem.Collections.Generic;usingSystem.Reflection;[MemoryDiagnoser]publicclassProgram{staticvoidMain(string[]args)=>BenchmarkSwitcher.FromAssemblies(new[]{typeof(Program).Assembly}).Run(args);privateMethodInfo_mi=typeof(Program).GetMethod("MyMethod");publicvoidMyMethod(){}[Benchmark]publicIList<CustomAttributeData>Get()=>_mi.GetCustomAttributesData();}
MethodToolchainMeanRatioAllocated
Get\main\corerun.exe77.13 ns1.0048 B
Get\pr\corerun.exe72.08 ns0.93-

@stephentoubstephentoub added this to the6.0.0 milestoneJun 18, 2021
@jkotas
Copy link
Member

Failure is#54125

@jkotasjkotas merged commit1ccd65f intodotnet:mainJun 21, 2021
@stephentoubstephentoub deleted the emptycustomattrs branchJune 21, 2021 18:02
@ghostghost locked asresolvedand limited conversation to collaboratorsJul 21, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@jkotasjkotasjkotas approved these changes

Assignees

No one assigned

Projects

No open projects

Milestone

6.0.0

Development

Successfully merging this pull request may close these issues.

2 participants

@stephentoub@jkotas

[8]ページ先頭

©2009-2025 Movatter.jp