[Proposal] C# GUID literal (companion to VB proposal) #985
Unanswered
mkane91301
asked this question in
General
Replies: 2 comments
-
We don't even have DateTime literals. Also RIP dotnet/roslyn#263 |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would much rather see support for blittable constants first so that literals are actually efficient. Outside of that, calling the constructor that takes a string (or using a code refactoring to convert that to the raw value overload) seems to work well enough. |
Beta Was this translation helpful? Give feedback.
0 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.
-
vblang #27 proposes a syntax for GUID literals and suggests CLR changes to enable GUID constants. This proposal is to match the feature for C# with appropriate syntax.
Beta Was this translation helpful? Give feedback.
All reactions