csharp dose no emit warning when implementing/overriding nullable reference type parameter #7023
Unanswered
MauNguyenVan
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Because adding the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have implemented an interface
IBase1
withstring Foo(string para);
in theBase1
class withpublic string Foo(string? para){}
.I think implementing para string?
Foo(string? para){}
in class for stringFoo(string para);
in the interface is not true, but csharp compiler does not warn and allow some mistakes when sending parameters after thatI'm using VS 17.5.1, C# 11, Net core 7.0
Beta Was this translation helpful? Give feedback.
All reactions