Using And in class

themster

Newcomer
Joined
Oct 29, 2003
Messages
10
Is there any way that I can create a public function in my class that is called And. I get an understandable error saying that And is a reserved word. Is there any way around this problem?

In the System.Collections.BitArray class they use And as a function name. How do they do that?
 
Visual Basic:
Public Function [And]() As Object
'...
End Function
If you want to name your method with a reserved word, putting brackets around it will let you do it.
 
Back
Top