Using reserved keyword as method name

  • Thread starter Thread starter Shayne H
  • Start date Start date
S

Shayne H

Is it possible to apply some attribute to allow the use of a reserved
keyword as a name for a class member?
eg

Class Foo
Sub Stop()
...
End Sub
End Class

I thought it might be possible because the System.Timers.Timer has a Stop
method.
 
Shayne H said:
Is it possible to apply some attribute to allow the use of a reserved
keyword as a name for a class member?

Class Foo
Sub Stop()
...
End Sub
End Class

I thought it might be possible because the System.Timers.Timer has a Stop
method.

Put the name into square brackets: 'Sub [Stop]'.
 
Back
Top