Local static readonly fields #9377
Unanswered
mariusz96
asked this question in
Language Ideas
Replies: 1 comment
-
See: #832 |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Local static readonly fields
Currently it is possible to declare static readonly fields inside classes:
however they are also useful inside methods:
because they:
and declaring them without
static readonly
keyword wastes computer resourcesLocal constants
They are analogous to local constants which exist today:
Beta Was this translation helpful? Give feedback.
All reactions