Use of @keyword in C# -- bad idea?
- by Robert Fraser
In my naming convention, I use _name for private member variables. I noticed that if I auto-generate a constructor with ReSharper, if the member is a keyword, it will generate an escaped keyword. For example:
class IntrinsicFunctionCall
{
private Parameter[] _params;
public IntrinsicFunctionCall(Parameter[] @params)
{
_params = @params;
}
}
Is this generally considered bad practice or is it OK? It happens quite frequently with @params and @interface.