-
Notifications
You must be signed in to change notification settings - Fork 998
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 nullability in DesignerActionMethodItem #12676
base: main
Are you sure you want to change the base?
Conversation
909d588
to
e03833e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12676 +/- ##
===================================================
+ Coverage 76.03108% 76.03455% +0.00346%
===================================================
Files 3181 3181
Lines 639670 639700 +30
Branches 47215 47215
===================================================
+ Hits 486348 486393 +45
+ Misses 149805 149788 -17
- Partials 3517 3519 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
||
public virtual bool IncludeAsDesignerVerb { get; } | ||
|
||
public virtual void Invoke() | ||
{ | ||
_methodInfo ??= _actionList?.GetType()?.GetMethod(MemberName, BindingFlags.Default | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); | ||
_methodInfo ??= _actionList?.GetType()?.GetMethod(MemberName!, BindingFlags.Default | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment explaining in detail why MemberName!
can never be null
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can actually be null, but I did not want to add an extra exception to it.
@lonitra should I throw an exception instead?
Proposed changes
Microsoft Reviewers: Open in CodeFlow