Skip to content

Improve 'use pattern matching' to use is null instead of is not object#59464

Merged
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
CyrusNajmabadi:usePatternImprovements
Feb 11, 2022
Merged

Improve 'use pattern matching' to use is null instead of is not object#59464
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
CyrusNajmabadi:usePatternImprovements

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner February 10, 2022 22:12
@ghost ghost added the Area-IDE label Feb 10, 2022
Comment on lines +130 to +132
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNotPattern)]
[WorkItem(50690, "https://github.com/dotnet/roslyn/issues/50690")]
public async Task BinaryIsObject()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsUseNotPattern)]
[WorkItem(50690, "https://github.com/dotnet/roslyn/issues/50690")]
public async Task BinaryIsObject()
[Theory, CombinatorialData, Trait(Traits.Feature, Traits.Features.CodeActionsUseNotPattern)]
[WorkItem(50690, "https://github.com/dotnet/roslyn/issues/50690")]
public async Task BinaryIsObject([CombinatorialValues(LanguageVersion.CSharp8, LanguageVersion.CSharp9)] LanguageVersion languageVersion)

}
}
}",
LanguageVersion = LanguageVersion.CSharp9,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
LanguageVersion = LanguageVersion.CSharp9,
LanguageVersion = languageVersion,

@CyrusNajmabadi CyrusNajmabadi merged commit 299001c into dotnet:main Feb 11, 2022
@ghost ghost added this to the Next milestone Feb 11, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the usePatternImprovements branch February 11, 2022 09:10
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P2 Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants