const keyword in arguments #67564
Answered
by
CyrusNajmabadi
YoussefAminGomaa
asked this question in
Ideas
-
add a const keyword to arguments like the Attribute the argument is not constant, the value is the constant. here's an example of it: // the user should enter a constant value static void WriteConstant(const string text) |
Beta Was this translation helpful? Give feedback.
Answered by
CyrusNajmabadi
Mar 29, 2023
Replies: 1 comment 6 replies
-
You could do this by adding an attribute to the parameter, then writing an analyzer that checks callsites for you. :) |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
YoussefAminGomaa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could do this by adding an attribute to the parameter, then writing an analyzer that checks callsites for you. :)