I am currently following Microsoft’s Naming Guidelines, and so using camelCase in function parameter naming. Now suppose I would like to use the signature
public string WriteNumberInBase (int number, int base)
in some method and the compiler is complaining about the parameter name just because ‘base’ is a reserved keyword… Is there any way I can get ‘base’ to be accepted as a parameter name?
Try this:
(As a side note, in VB.NET you would do the same by putting a keyword or reserved word in square brackets, e.g.
[MyBase].)Or alternatively, simply call your parameter
radixinstead ofbase.