Idea: extern static
fields
#9117
Unanswered
jkrejcha
asked this question in
Language Ideas
Replies: 2 comments 5 replies
-
How does C++/CLI handle this? Does the runtime and ECMA-335 have feature to support this? |
Beta Was this translation helpful? Give feedback.
3 replies
-
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.
-
C# has the ability to reference externally defined functions like so
but isn't able to reference externally defined fields in the same way that C code might. This is useful for some interop scenarios where a exported field is defined.
Syntax proposal would probably be similar to
Currently the only alternative is to use the
NativeLibrary.GetExport
function.Beta Was this translation helpful? Give feedback.
All reactions