const keyword in arguments #67564
-
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.
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.
You could do this by adding an attribute to the parameter, then writing an analyzer that checks callsites for you. :)