Replies: 6 comments
-
Wouldn't an unconstrained |
Beta Was this translation helpful? Give feedback.
-
@orthoxerox No, and that the main thing that makes us concerned about it. |
Beta Was this translation helpful? Give feedback.
-
Ah... I finally understand the concerns. That's tricky. |
Beta Was this translation helpful? Give feedback.
-
I'm not a huge fan of using Looking through the list of "problematic" signatures, I think some of them don't need to be on there:
Isn't
Probably also a good candidate for
I thought that this is what
And
On-the-spot idea: // example using one of System.Threading.Timer's ctors:
public Timer(TimerCallback callback, [NullablePassthrough(0, 0)] object? state, TimeSpan dueTime, TimeSpan period) { } The Okay, so there's probably a whole host of other things that would have to be considered for that last one, but an idea's an idea. |
Beta Was this translation helpful? Give feedback.
-
ooh, good catch. But wouldn't |
Beta Was this translation helpful? Give feedback.
-
@Joe4evr Good points. One note: those "problematic signatures" are just things that can't be addressed without attributes or additional syntax. So it includes stuff that could be addressed using attributes (I don't know about WeakReference, that's good to check). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-04-22.md
https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-04-24.md
Beta Was this translation helpful? Give feedback.
All reactions