Use event

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I have 2 classes inside a Namespace: "Calendar" and "Event".

MyNamespace
| --------- Calendar
|-------------Event

VS is not accepting the "Event" as a name to the class.

Is there a way to make VS Studio accept this so I can use something
like:

Dim e As New MyNamespace.Calendar.Event

Thanks,
Miguel
 
Hi,

Event is reserved word in VB.NET. Couldn't you name it something like
CalendarEvent?
 
Hi,

Event is reserved word in VB.NET. Couldn't you name it something like
CalendarEvent?

Yes, I can use CalendarEvent ... but I would prefer event so I was
just wondering if this would be possible.

Thanks,
Miguel
 
Well, it is if you place the name inside Brackets

Public Class [Event]

but that ain't beautiful either
 
Back
Top