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

Enable IDE0200 (remove unnecessary lambda expression) #7916

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

elachlan
Copy link
Contributor

@elachlan elachlan commented Oct 11, 2022

Enables IDE0200 (remove unnecessary lambda expression).

Related #7887

Microsoft Reviewers: Open in CodeFlow

@elachlan elachlan requested a review from a team as a code owner October 11, 2022 06:15
@ghost ghost assigned elachlan Oct 11, 2022
@@ -218,7 +218,7 @@ public override object EditValue(ITypeDescriptorContext context, IServiceProvide
_currentContext = context;

// Child modal dialog - launching in SystemAware mode.
CollectionForm localCollectionForm = DpiHelper.CreateInstanceInSystemAwareContext(() => CreateCollectionForm());
CollectionForm localCollectionForm = DpiHelper.CreateInstanceInSystemAwareContext(CreateCollectionForm);
Copy link
Member

Choose a reason for hiding this comment

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

IIRC, this used to have inferior perf characteristics, I have to dig for details though...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is no longer the case based on https://devblogs.microsoft.com/dotnet/performance_improvements_in_net_7/#analyzers

I think this was the related change dotnet/roslyn#58288

Copy link
Member

Choose a reason for hiding this comment

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

Thank you for the link, this is what I was referring to.

@RussKie RussKie added code cleanup cleanup code for unused apis/properties/comments - no functional changes. waiting-review This item is waiting on review by one or more members of team labels Oct 11, 2022
Copy link
Member

@dreddy-work dreddy-work left a comment

Choose a reason for hiding this comment

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

LGTM

@RussKie RussKie removed the waiting-review This item is waiting on review by one or more members of team label Oct 12, 2022
@RussKie RussKie merged commit 3fd9db1 into dotnet:main Oct 12, 2022
@ghost ghost added this to the 8.0 Preview1 milestone Oct 12, 2022
@elachlan elachlan deleted the IDE0200 branch October 12, 2022 00:19
v-elnovikova pushed a commit to v-elnovikova/winforms that referenced this pull request Oct 18, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
code cleanup cleanup code for unused apis/properties/comments - no functional changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants