Skip to content

Make s_events non-nullable in SendKeys#6470

Merged
dreddy-work merged 2 commits intodotnet:mainfrom
gpetrou:SendKeys
Jan 14, 2022
Merged

Make s_events non-nullable in SendKeys#6470
dreddy-work merged 2 commits intodotnet:mainfrom
gpetrou:SendKeys

Conversation

@gpetrou
Copy link
Contributor

@gpetrou gpetrou commented Jan 6, 2022

Proposed changes

Microsoft Reviewers: Open in CodeFlow

@gpetrou gpetrou requested a review from a team as a code owner January 6, 2022 07:37
@ghost ghost assigned gpetrou Jan 6, 2022
@dreddy-work dreddy-work added 📖 documentation: breaking please open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarren 🚫 * NO-MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) area: NRT and removed 🚫 * NO-MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) 📖 documentation: breaking please open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarren labels Jan 7, 2022
@dreddy-work
Copy link
Member

@dreddy-work dreddy-work added the waiting-author-feedback The team requires more information from the author label Jan 12, 2022
try
{
eventsTotal = s_events!.Count;
if (s_events is null)
Copy link
Member

Choose a reason for hiding this comment

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

maybe we should make s_events read only assignment and non-nullable.

@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Jan 13, 2022
@gpetrou gpetrou changed the title Check if s_events is null in SendInput method of SendKeys Make s_events non-nullable Jan 13, 2022
@gpetrou gpetrou changed the title Make s_events non-nullable Make s_events non-nullable in SendKeys Jan 13, 2022
@dreddy-work dreddy-work added the ready-to-merge PRs that are ready to merge but worth notifying the internal team. label Jan 13, 2022
@dreddy-work dreddy-work merged commit 02f6fc0 into dotnet:main Jan 14, 2022
@ghost ghost added this to the 7.0 Preview1 milestone Jan 14, 2022
@gpetrou gpetrou deleted the SendKeys branch January 14, 2022 18:18
@ghost ghost locked as resolved and limited conversation to collaborators Feb 13, 2022
@RussKie RussKie removed the ready-to-merge PRs that are ready to merge but worth notifying the internal team. label Oct 18, 2022
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.

3 participants