Replies: 1 comment 1 reply
-
You can define an internal NullableAttribute manually yourself and it will work. However the spec of how to apply it for generic types can be complicated to say the least. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Libraries written in C# have an obvious path for migrating to nullable reference syntax (once C# 8.0 support is available). My question is how libraries authored in other languages (C++/CLI in particular) are expected to be annotated to inform the C# compiler that
The Roslyn preview creates an internal NullableAttribute class within the assembly to indicate the first. Is this planned to be promoted to a core attribute prior to release of this language feature? Is attribute annotation likely to be the final solution?
Beta Was this translation helpful? Give feedback.
All reactions