[Proposal] Simplification of Constant Declarations. #3478
Replies: 3 comments
-
This would mean that |
Beta Was this translation helpful? Give feedback.
-
interesting point, although the difference is that a for a read only string this is valid
|
Beta Was this translation helpful? Give feedback.
-
This pattern is widely used in the roslyn codebase. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Often find myself declaring constants where the value isn't actually important - just having the same constant is. So often i write
const string LastUpdatedKey = "LastupdatedKey";
would be nice if we could just write
const string LastUpdatedKey;
Beta Was this translation helpful? Give feedback.
All reactions